Skip to main contentSkip to solution

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

✅ Correct Option: 2

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 − 1-\ 1.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question