CS FundamentalsHardGATE CS · DBMS

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

  1. A. {AB, AC, BC, BE}
  2. B. {AB, BC, BCE}
  3. C. {AB, BC}
  4. D. {AB, BC, BE}

Correct answer: D. {AB, BC, BE}

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