CS FundamentalsVery hardGATE CS

R(A, B, C, D, E) has functional dependencies A → BC, CD → E, B → D and E → A. What are all the candidate keys of R?

  1. A. A, E, BC and CD
  2. B. A and E only
  3. C. A, E and CD
  4. D. A, E, BC, CD and BD

Correct answer: A. A, E, BC and CD

A⁺ is everything, and E → A makes E a key. BC⁺: B → D, then CD → E → A, so BC is a key; CD → E → A → B also works. BD⁺ = BD only, so BD is not a key.

More DBMS and SQL questions

Exams that ask this topic