Brains4Cloud
ESEN

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

More General concepts terms

See the whole glossary →