Consider the following statements and about the relational data model:
- : A relation scheme can have at most one foreign key.
- : A foreign key in a relation scheme cannot be used to refer to tuples of
Which one of the following choices is correct?
GATE CSE 2021Databases › ER Modeling & Relational Model FundamentalsVerified
(D) Both S 1 S1 S 1 and S 2 S2 S 2 are false
Evaluate each statement about the relational model using the formal definition of a foreign key. A foreign key is a set of attributes in one relation whose values must match the primary key (or a candidate key) of some relation; nothing in the definition limits the number of foreign keys per scheme, and the referenced relation may be the same relation that contains the key.
The relational model permits any number of foreign keys in a relation scheme and explicitly allows a foreign key to reference the same relation (self-referencing key). Hence both S1 and S2 are false, making option D correct.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.