- SQL stands for Structured Query Language
- SQL lets you access and manipulate databases
A SQL database is a collection of tables that stores a specific set of structured data.
Database Management Systems (DBMS) are software systems used to store, retrieve and run queries on data. A DBMS serves as an interface between an end-user and a database, allowing users to create, read, update, and delete data in the database.
eg : MySQL, Oracle DB, etc.
RDBMS stands for Relational Database Management System. RDBMS is a program used to maintain a relational database. RDBMS uses SQL queries to access the data in the database.
Types of Commands Available in SQL :
- Data Definition Language
- Data Manipulation Language
- Data Query Language
- Data Control Language
- Transactional Control Language
Data Definition Language : Set of commands used to create and modify the structure of database objects in a database.
- create, alter, drop, truncate
Create : To create a database and table.
Alter : To add, change, modify or drop columns in an existing table.
Truncate: To delete the data inside a table but not the table itself (retains structure of the table)
Drop: To remove/delete an entire table.
Data Manipulation Language : A set of commands used to add (insert), delete (delete), and alter (update) data in a database.
- insert, update, delete
Insert: To add new records/rows in a table
Update: Modifies existing records in a table based on a condition specified by where clause
Delete: Deletes existing rows in a table
Data Query Language : Commands used to make various queries in the table
- select
![]() |
Basic Syntax |
Data Control Language: Allows to set up and control BigQuery resources using GoogleSQL query syntax.
- grant, revoke
- commit, rollback