CS FundamentalsHardGATE CS (PYQ pattern)

R(A, B, C, D, E) has the functional dependencies C → B, A → D, A → C, BE → A. How many superkeys does R have (counting every attribute set that determines all of R)?

  1. A. 17
  2. B. 14
  3. C. 12
  4. D. 20

Correct answer: B. 14

Candidate keys are ['AE', 'BE', 'CE']. Counting every subset of the 5 attributes whose closure is R gives 14 superkeys; counting only candidate keys is the trap.

More DBMS and SQL questions

Exams that ask this topic