The standard language for relational database management systems.
Database is a container which is used to store data in a systematic format so that data can be easily retrieved, edited, and managed (perform query).
There are multiple mechanisms to store data, like Excel, files, etc., but to store data which is massive in size, a flat file is very unrealistic.
SQL acts as the secure bridge between the user/application and the database.
SQL is a Case-Insensitive language.SELECT andselect are treated as the same command.
Think of it like Excel spreadsheets. Data is stored in tables, and there are logical relations (connections) between those tables.
Stores data as a collection of key-value pairs.
Uses graph structures with nodes, edges, and properties.
Data structure doesn't matter. Stores data in JSON-like documents.
Stores data in columns rather than rows.
| Category | Full Form | Commands |
|---|---|---|
| DDL | Data Definition Language | CREATE, ALTER, DROP, TRUNCATE |
| DML | Data Manipulation Language | INSERT, UPDATE, DELETE |
| DCL | Data Control Language | GRANT, REVOKE |
| TCL | Transaction Control Language | COMMIT, ROLLBACK |
| DQL | Data Query Language | SELECT |