CS FundamentalsVery hardGATE CS

A relation has 6 attributes. What is the largest possible number of candidate keys it can have under some set of functional dependencies?

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

Correct answer: D. 20

Candidate keys cannot contain one another, so they form an antichain of subsets; by Sperner's theorem the largest has C(6, 3) = 20 sets, achieved when every 3-attribute set is a key (any 3 attributes determine the rest).

More DBMS and SQL questions

Exams that ask this topic