- Data Manipulation Language (DML): retrieve and modify data
- Data Definition Language (DDL): create, alter, and drop database objects
- Data Control Language (DCL): manage user permissions

Data Manipulation Language (DML)
DML is where you spend most of your SQL time. Each DML statement begins with one of these commands:
Common clauses include:
- FROM: specify source table(s)
- JOIN: combine rows from multiple tables
- WHERE: filter rows affected by the statement
SELECT
Retrieve data from aCustomer table:
CustomerId equals 0001.
UPDATE
Modify an existing row:LastName for customer 0001 is updated.
DELETE
Always include a
WHERE clause in a DELETE statement. Omitting it will remove all rows from the table.INSERT
Add a new record:Data Definition Language (DDL)
DDL statements manage database structures—tables, views, indexes, and more.
Data Control Language (DCL)
DCL commands grant or revoke permissions to users and roles: