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?
- A. 6
- B. 15
- C. 64
- 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
- In multiple-granularity locking, how many of these lock-mode pairs (held, requested) on the same node are compatible? IS–IX, IX–IX, S–IX…
- Which statement correctly states the write-ahead logging (WAL) rule?
- Which statement about compensation log records (CLRs) in ARIES is correct?
- Which locking scheme guarantees BOTH freedom from deadlock and schedules without cascading rollback?
- Table T has 7 rows. What does SELECT COUNT() FROM T HAVING COUNT() > 10; return? (Standard SQL; SQLite accepts HAVING without GROUP BY…
- Table U(x INT UNIQUE) is empty. These statements run one at a time: INSERT (1); INSERT (NULL); INSERT (NULL); INSERT (1). How many succeed…