CS FundamentalsHardGATE CS

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

  1. A. 32
  2. B. 28
  3. C. 24
  4. D. 16

Correct answer: B. 28

The candidate keys are AB and CD. Supersets of AB number 2⁴ = 16, supersets of CD also 16, and those containing both (ABCD plus any of E, F) are 4, so 16 + 16 − 4 = 28.

More DBMS and SQL questions

Exams that ask this topic