What is a foreign key?
Short answer
Column linking to another table's primary key.
Advertisement
AModel answer
Column linking to another table's primary key.
Example
Order customer_id.
Real-world example
Normalizing tables reduced duplicate data and update errors.
Likely follow-ups
- What is normalization
- What is primary key
- What is foreign key
Related topics