_____ is an attribute whose value is derived from the primary key of another relation.
_____ is an attribute whose value is derived from the primary key of another relation.
Solution
A foreign key is an attribute (or set of attributes) in one relation whose values refer to the primary key of another relation. It links the two tables and enforces referential integrity, so every value in it must either match an existing primary key value in the referenced table or be NULL.
Candidate key: any attribute or minimal set of attributes that can uniquely identify a tuple within its own relation. It is not tied to another relation.
Alternate key: a candidate key that was not chosen as the primary key.
Composite primary key: a primary key made of two or more attributes in the same relation, not a reference to another relation.
Related questions:
2026: 31 May Shift 1
2026: 21 May Shift 1
2026: 20 May Shift 1
2025: 16 May Shift 1