In a relational database, what is the purpose of a foreign key?

Practice Questions

1 question
Q1
In a relational database, what is the purpose of a foreign key?
  1. To uniquely identify a record
  2. To establish a relationship between two tables
  3. To enforce data integrity
  4. To improve query performance

Questions & Step-by-step Solutions

1 item
Q
Q: In a relational database, what is the purpose of a foreign key?
Solution: A foreign key is used to establish a relationship between two tables, linking records in one table to records in another.
Steps: 5

Related Questions