CS FundamentalsHardGATE CS · Amazon/Microsoft placement

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

  1. A. {ABD, ACD, BCD, CDE}
  2. B. {ACD, BCD, ACDE}
  3. C. {ACD, BCD, CDE}
  4. D. {ACD, BCD}

Correct answer: C. {ACD, BCD, CDE}

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