CS FundamentalsVery hardGATE CS · Product placement

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

  1. A. {ABD, ADE, ADF}
  2. B. {ABD, ADE, ADF, AEF}
  3. C. {ABD, ADE}
  4. D. {ABD, ADE, ADEF}

Correct answer: A. {ABD, ADE, ADF}

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