CS FundamentalsVery hardGATE CS · Product placement

What is the maximum possible number of candidate keys a relation with 6 attributes can have (over all FD sets)?

  1. A. 63
  2. B. 20
  3. C. 6
  4. D. 15

Correct answer: B. 20

Candidate keys form an antichain (no key contains another), and by Sperner's theorem the largest antichain of subsets of a 6-set has C(6, 3) = 20 sets — achieved when every 3-attribute set is a key.

More DBMS and SQL questions

Exams that ask this topic