CS FundamentalsHardGATE CS · Amazon/Microsoft placement

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

  1. A. {CE}
  2. B. {CE, BCD}
  3. C. {CE, ABCE}
  4. D. {AD, CE, BCD}

Correct answer: B. {CE, BCD}

Attributes never on a right side (C) must be in every key; extending them and testing closures gives exactly the minimal superkeys {CE, BCD}. 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