CS FundamentalsVery hardGATE CS

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

  1. A. 32
  2. B. 30
  3. C. 31
  4. D. 15

Correct answer: B. 30

F and B never appear on the right except F → B, so every key needs F (which gives B) plus one of A, C, D, E. A superkey is F, any subset of {A, C, D, E} that is non-empty, and B optional: 15 × 2 = 30. 31 wrongly counts BF, and 15 forgets B is free.

More DBMS and SQL questions

Exams that ask this topic