CS FundamentalsHardGATE

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

  1. A. ABC
  2. B. AB
  3. C. ABCD
  4. D. BCD

Correct answer: B. AB

Computing each candidate attribute set's closure under AB → C, AC → D, the minimal sets whose closure is all of {ABCD} are: AB.

More DBMS and SQL questions

Exams that ask this topic