CS FundamentalsHardGATE CS · Product placement

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

  1. A. {AD, BD, BE, CD, DE}
  2. B. {AD, BD, CD}
  3. C. {AD, BD, CD, DE}
  4. D. {AD, BD, CD, BDE}

Correct answer: C. {AD, BD, CD, DE}

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