CS FundamentalsHardGATE CS · Product placement

R(A, B, C, D, E) has functional dependencies AC → BD, A → CD, C → D, D → A. Which of the following is the complete set of candidate keys of R?

  1. A. {AE, CE}
  2. B. {AE, CE, BCE}
  3. C. {AD, AE, CE, DE}
  4. D. {AE, CE, DE}

Correct answer: D. {AE, CE, DE}

Attributes never on a right side (E) must be in every key; extending them and testing closures gives exactly the minimal superkeys {AE, CE, DE}. Each closure covers all of R and no proper subset does, so these are all the candidate keys.

More DBMS and SQL questions

Exams that ask this topic