CS FundamentalsVery hardGATE CS · Amazon/Microsoft placement

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

  1. A. 4
  2. B. 7
  3. C. 12
  4. D. 6

Correct answer: B. 7

Candidate keys are {ACDE, BCDE, CDEF}. Count supersets of each key and apply inclusion–exclusion (a set may contain two keys): the total is 7, not the naive sum 12.

More DBMS and SQL questions

Exams that ask this topic