General concepts
SQL: DDL, DML, and DCL
Appears inDP-900
Categories of SQL statements. DDL (Data Definition Language) defines structure: CREATE, ALTER, DROP. DML (Data Manipulation Language) works with data: SELECT, INSERT, UPDATE, DELETE. DCL (Data Control Language) manages permissions: GRANT, DENY, REVOKE.
On the exam
In DP-900 you need to recognize the category: adding a column with ALTER TABLE is DDL; changing a price with UPDATE is DML; granting read permission with GRANT is DCL. DELETE removes rows; DROP TABLE removes the whole table.
Related terms
- Primary and foreign keysThe primary key uniquely identifies each row in a table and doesn't allow nulls or duplicates. The foreign key is a column that references another table's primary key, which creates the relationship and enables referential integrity.
- Azure SQL DatabaseA fully managed PaaS relational database built on SQL Server. Microsoft manages the hardware, OS, patching, and automatic backups. The customer only manages the schema and data.