CS FundamentalsVery hardProduct-company MCQ pattern

R(A, B, C, D) has FDs AB → CD, C → A, D → B, giving candidate keys AB, AD, BC and CD. How many superkeys does R have?

  1. A. 8
  2. B. 9
  3. C. 11
  4. D. 15

Correct answer: B. 9

Two-attribute superkeys are exactly the 4 keys (AC and BD are not). Every 3-attribute set contains one of them (4 sets), plus ABCD: 4 + 4 + 1 = 9. No single attribute is a superkey.

More DBMS and SQL questions

Exams that ask this topic