Foreign Keys, Referential Integrity, and Referential Actions
5 flashcards · 5 quiz questions · 5 match pairs · 5 fill-in sentences · English
Your progress is kept in this browser only.Sign up to save it
Summary
A foreign key connects records in one table to records in another. This lesson introduces foreign keys, candidate keys, and the integrity rule that keeps references valid.
A foreign key is one or more attributes (columns) in a table whose values refer to a candidate key in another table. It establishes a link between the rows of the two tables.
For example, a TEAM table might contain MEMBER_NAME, which refers to PERSON_NAME in a PERSON table. If MEMBER_NAME is a foreign key, every non-null member name in TEAM must also occur as a valid person name in PERSON.
All flashcards
Quiz questions
Based on the Wikipedia article Foreign key, licensed CC BY-SA 4.0. Adapted into a summary, flashcards and quizzes.