CS FundamentalsVery hardProduct-company MCQ pattern

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

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

Correct answer: A. 7

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

More DBMS and SQL questions

Exams that ask this topic