GATE / CS ARCHIVE

GATE CSE 2021 SET 2 / QUESTION 6

GATE CSE 2021 Set 2 Q6

Database Management Systems · Database Models, Architecture & ER Diagrams · Full GATE CSE 2021 Set 2 paper

GATE 2021 Set 2, Q6 1 mark · MCQ
Report issue

Database Models, Architecture & ER Diagrams

Question 6, GATE 2021: Relational model statements: S1 a relation schema has at most one foreign key; S2 a foreign key in R cannot refer to tuples of R itself. A both; B only S1; C only S2; D neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

A relation can have several foreign keys, for example managerId and departmentId. It can also reference itself, as managerId referencing another employee in the same employee relation. Both proposed restrictions are false, D.

A concrete schema is Employee(id,managerId,deptId), where managerId references Employee(id) and deptId references Department(id). It simultaneously refutes both claims. A foreign key enforces referenced-key membership; it does not impose a one-foreign-key limit or require a different relation name.

Original paper, page 58 · Answer key