CS FundamentalsModerateWipro · Cognizant pattern

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

  1. A. ABD
  2. B. A
  3. C. AD
  4. D. AB

Correct answer: C. AD

A⁺ = {A, B, C}, which misses D. D appears on no right-hand side, so it must be in every key; (AD)⁺ = {A, B, C, D}. ABD is a superkey but not minimal.

More DBMS and SQL questions

Exams that ask this topic