CS FundamentalsVery hardGATE CS · PSU (ISRO/BARC)
R(A, B, C, D, E) has functional dependencies DE → B, CE → A, AC → BE. How many superkeys does R have?
- A. 2
- B. 8
- C. 3
- D. 6
Correct answer: D. 6
C and D never appear on a right side, so every key contains CD; the candidate keys are ACD and CDE. Supersets: 4 + 4 − 2 (ACDE is counted twice) = 6. 8 is the naive sum without inclusion–exclusion; 2 counts only the candidate keys, and 3 adds just R itself.
More DBMS and SQL questions
- Σ = {C → A, AB → D, BC → D, A → B, D → B} on R(A, B, C, D, E). Exactly one FD in Σ is redundant (it can be derived from the others). Which…
- R(A, B, C, D, E, F) has functional dependencies B → ACDF, A → B. How many superkeys does R have?
- R(A, B) = {(2, 1), (3, 1), (3, 3), (3, 4), (4, 4)} and S(B, C) = {(1, 5), (2, 5), (2, 7), (3, 7)}. How many tuples are in R ⟕ S (left…
- A relation has 100,000 tuples and a selection σ{city='Pune'} with an estimated selectivity of 2%. Each block holds 50 tuples and the…
- Classify the schedule W1(A), R2(A), R1(B), R1(A), C1, R2(B), W2(A), C2 (Ci = commit of Ti) by the strongest property it satisfies.
- R(A, B, C, D, E, F) has the set of functional dependencies Σ = {CE → B, A → F, BE → D, AF → B}. Which of the following FDs is NOT in Σ⁺…