CS FundamentalsVery hardGATE CS · DBMS

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

  1. A. {ABCF, ACDF}
  2. B. {ABCF, ACDF, BCDE}
  3. C. {ABCF, ACDEF}
  4. D. {ABCF}

Correct answer: A. {ABCF, ACDF}

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