CS FundamentalsVery hardGATE CS · PSU (ISRO/BARC)

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

  1. A. {ABCD, ABCF, ACDF}
  2. B. {ABCD}
  3. C. {ABCD, ABCDE}
  4. D. {ABCD, ABCF}

Correct answer: D. {ABCD, ABCF}

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