CS FundamentalsHardGATE CS
R(A, B, C, D, E, F) has functional dependencies AB → CDEF and CD → AB. How many superkeys does R have?
- A. 32
- B. 28
- C. 24
- D. 16
Correct answer: B. 28
The candidate keys are AB and CD. Supersets of AB number 2⁴ = 16, supersets of CD also 16, and those containing both (ABCD plus any of E, F) are 4, so 16 + 16 − 4 = 28.
More DBMS and SQL questions
- R(A, B, C, D, E) has functional dependencies A → B, BC → E and ED → A. It is decomposed into R1(A, B, C) and R2(A, C, D, E). Which…
- F = {A → B, AB → C, D → AC, D → E} and G = {A → BC, D → AE}. Which statement is correct?
- For the schedule R3(A), W1(B), R2(B), W2(A), W4(C), R3(C), how many serial schedules are conflict equivalent to it?
- For the schedule R1(A), W2(A), R3(B), R4(B), W3(C), R1(C), how many serial schedules are conflict equivalent to it?
- Classify the schedule R1(X), W2(X), W1(X), W3(X), R4(X).
- Classify the schedule W1(A), W2(A), C1, R3(A), C2, C3 (Ci = commit of Ti) by the strongest property it satisfies.