CS FundamentalsVery hardGATE CS · PSU (ISRO/BARC)
R(A, B, C, D, E, F) has functional dependencies EF → D, B → C, D → BF, A → E. How many superkeys does R have?
- A. 24
- B. 16
- C. 32
- D. 23
Correct answer: A. 24
Candidate keys are {AD, AF}. Count supersets of each key and apply inclusion–exclusion (a set may contain two keys): the total is 24, not the naive sum 32.
More DBMS and SQL questions
- Table Product(pid, cat, price) rows: (1, 'X', 10), (2, 'X', 20), (3, 'Y', 20), (4, NULL, 30), (5, 'Y', NULL), (6, 'Z', 5). What does this…
- R(A, B, C, D, E) with functional dependencies E → BC, D → B is decomposed into R1(A, B, D), R2(C, D), R3(B, C, E). Which statement is…
- A B+ tree index uses 1024-byte blocks, 12-byte search keys, 10-byte block pointers and 6-byte record (data) pointers. Each leaf also keeps…
- Which statement about a UNIQUE constraint versus a PRIMARY KEY in standard SQL is correct?
- Consider the schedule R1(B), W3(B), W3(A), R2(B), W2(A), R1(A), W1(A). Which statement is correct?
- Extendible hashing uses the LOWEST-order bits of a key's binary value, bucket capacity 2, and starts with global depth 0 and one empty…