CS FundamentalsModerateWipro Elite · LTIMindtree

R(A, B, C, D) has the functional dependencies AB -> C, C -> D and D -> A. How many candidate keys does R have?

  1. A. 1
  2. B. 3
  3. C. 2
  4. D. 4

Correct answer: B. 3

B appears on no right side, so every key contains B. AB, BC and BD each determine all attributes, and no smaller set works: 3 keys.

More DBMS and SQL questions

Exams that ask this topic