CS FundamentalsVery hardGATE CS · Amazon/Microsoft placement
R(A, B, C, D, E) has functional dependencies CE → A, B → AC, BE → CD, DE → B. How many superkeys does R have?
- A. 16
- B. 11
- C. 8
- D. 12
Correct answer: D. 12
Candidate keys are {BE, DE}. Count supersets of each key and apply inclusion–exclusion (a set may contain two keys): the total is 12, not the naive sum 16.
More DBMS and SQL questions
- Classify the schedule W1(B), W2(A), R2(B), C2, W1(A), C1 (Ci = commit of Ti) by the strongest property it satisfies.
- R(A, B, C, D, E) has functional dependencies CE → A, A → D, AC → DE, B → D. How many superkeys does R have?
- R(A, B) = {(1, 1), (1, 3), (3, 1), (3, 2), (3, 3)} and S(B, C) = {(1, 5), (2, 5), (2, 6), (2, 7), (4, 6)}. How many tuples are in πA(R ⋈…
- R(A, B, C, D, E, F) has functional dependencies AE → F, A → BCD, F → B. What is the closure {AC}⁺?
- Assertion (A): For every relation schema there is a decomposition into 3NF relations that is lossless and dependency preserving. Reason…
- Σ = {A → D, AB → E, B → C, C → BE}. Consider the FD AB → E while computing a canonical cover. Which statement about extraneous attributes…