CS FundamentalsVery hardGATE CS

R(A, B, C, D, E, F) has functional dependencies AB → C, C → D, D → A, BE → F and F → E. How many candidate keys does R have?

  1. A. 4
  2. B. 8
  3. C. 2
  4. D. 6

Correct answer: D. 6

B is on no right side, so it is in every key. A, C, D form a cycle (pick any one of them) and E, F form another (pick one), giving 3 × 2 = 6 keys such as ABE, BCF, BDE.

More DBMS and SQL questions

Exams that ask this topic