CS FundamentalsVery hardGATE CS · PSU (ISRO/BARC)

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

  1. A. 2
  2. B. 8
  3. C. 3
  4. D. 6

Correct answer: D. 6

C and D never appear on a right side, so every key contains CD; the candidate keys are ACD and CDE. Supersets: 4 + 4 − 2 (ACDE is counted twice) = 6. 8 is the naive sum without inclusion–exclusion; 2 counts only the candidate keys, and 3 adds just R itself.

More DBMS and SQL questions

Exams that ask this topic