CS FundamentalsVery hardTCS Digital · Infosys

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

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

Correct answer: A. 4

B is on no right side, so it is in every key. AB, BC, BD and BE each determine everything, and none shrinks further: 4 keys.

More DBMS and SQL questions

Exams that ask this topic