CS FundamentalsHardGATE

R(A, B, C, D) has functional dependencies A → B, B → C, C → A. What are the candidate key(s) of R?

  1. A. AD
  2. B. AD, BD, CD
  3. C. ABCD
  4. D. ADB

Correct answer: B. AD, BD, CD

Computing each candidate attribute set's closure under A → B, B → C, C → A, the minimal sets whose closure is all of {A,B,C,D} are: AD, BD, CD. Any proper subset of these fails to close to every attribute, and any superset is a non-minimal superkey.

More DBMS and SQL questions

Exams that ask this topic