Which of the following statement(s) with respect to relation is/are correct?
(A) A relation can have only one candidate key.
(B) A relation can have only one primary key.
(C) A relation can have only one foreign key.
(D) A relation can have only one alternate key.
Which of the following statement(s) with respect to relation is/are correct?
(A) A relation can have only one candidate key.
(B) A relation can have only one primary key.
(C) A relation can have only one foreign key.
(D) A relation can have only one alternate key.
Solution
A primary key is the one candidate key chosen to identify rows uniquely, and a relation can have only one primary key. So only statement (B) is correct.
(A): a relation can have several candidate keys, which are all the minimal attribute sets that identify a tuple uniquely.
(C): a relation can have many foreign keys, each referring to a different table, or to the same table through different columns.
(D): alternate keys are all the candidate keys not chosen as the primary key, so there can be several of them.
Number of alternate keys number of candidate keys .
Related questions:
2025: 22 May Shift 1
2025: 21 May Shift 1
2025: 22 May Shift 1
2026: 20 May Shift 1
2026: 23 May Shift 2