What is the purpose of a foreign key in a relational database?

  • Defining table constraints
  • Enforcing data uniqueness
  • Establishing relationships between tables
  • Performing calculations on data
A foreign key in a relational database establishes relationships between tables by linking the primary key of one table to a corresponding column in another table, enforcing referential integrity.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *