What is a “foreign key” in a relational database ?
2025
What is a “foreign key” in a relational database ?
- A.
A key that uniquely identifies a record in a table
- B.
A key that links two tables together
- C.
A key used to store multiple values
- D.
A key that prevents null values
Attempted by 255 students.
Show answer & explanation
Correct answer: B
A foreign key is a field in one table that refers to the primary key of another table, establishing a link between them.