General concepts
Primary and foreign keys
Appears inDP-900
The 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.
On the exam
In DP-900 it comes up when describing relational data: in Orders, CustomerId is a foreign key to Customers. Along with views, indexes, and stored procedures, they are common relational database objects and concepts.
Related terms
- Database normalizationA technique that splits data into related tables so each piece of data is stored in only one place. It reduces redundancy and avoids insert, update, and delete anomalies. First normal form (1NF) requires atomic values in each column.
- SQL: DDL, DML, and DCLCategories 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.