132k views
1 vote
Why do relational databases use primary keys and foreign keys?.

1 Answer

10 votes

Answer:

Step-by-step explanation:

A relational database is designed to enforce the uniqueness of primary keys by allowing only one row with a given primary key value in a table. A foreign key is a column or a set of columns in a table whose values correspond to the values of the primary key in another table.

User Egervari
by
6.2k points