CS FundamentalsVery hardGATE CS · DBMS

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

  1. A. {ACD, ADE}
  2. B. {ACD, ADE, ADF}
  3. C. {ACD, ADE, ABCD}
  4. D. {ACD, ADE, ADF, CEF}

Correct answer: B. {ACD, ADE, ADF}

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