CS FundamentalsVery hardProduct-company MCQ pattern

R(A, B, C, D, E) has functional dependencies AB → C, C → D, D → E, E → B, giving candidate key(s) AB, AC, AD, AE. How many superkeys does R have in total?

  1. A. 15
  2. B. 14
  3. C. 16
  4. D. 31

Correct answer: A. 15

Every subset of attributes whose closure covers all of R is a superkey. Enumerating all 31 non-empty subsets and testing each one's closure gives exactly 15 superkeys in total (the candidate keys plus every superset of them).

More DBMS and SQL questions

Exams that ask this topic