CS FundamentalsVery hardGATE CS · Amazon/Microsoft placement

R(A, B, C, D, E) has functional dependencies CE → A, B → AC, BE → CD, DE → B. How many superkeys does R have?

  1. A. 16
  2. B. 11
  3. C. 8
  4. D. 12

Correct answer: D. 12

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

More DBMS and SQL questions

Exams that ask this topic