Question: What is the purpose of a foreign key in a relational database?
Options:
Correct Answer: All of the above
Solution:
A foreign key serves to create a relationship between two tables and enforce data integrity by ensuring that the value in one table corresponds to a valid record in another.