CS FundamentalsHardGATE

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

  1. A. ABC
  2. B. AC
  3. C. ABCD
  4. D. ACB

Correct answer: B. AC

Computing each candidate attribute set's closure under A → B, C → D, the minimal sets whose closure is all of {A,B,C,D} are: AC. 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