CS FundamentalsVery hardGATE CS
R(A, B, C, D, E) has functional dependencies A → BC, CD → E, B → D and E → A. What are all the candidate keys of R?
- A. A, E, BC and CD
- B. A and E only
- C. A, E and CD
- D. A, E, BC, CD and BD
Correct answer: A. A, E, BC and CD
A⁺ is everything, and E → A makes E a key. BC⁺: B → D, then CD → E → A, so BC is a key; CD → E → A → B also works. BD⁺ = BD only, so BD is not a key.
More DBMS and SQL questions
- Which of these is a minimal (canonical) cover of F = {AB → C, A → D, D → C, BD → E, AB → E}?
- R(A, B, C, D, E, F) has functional dependencies AB → CDEF and CD → AB. How many superkeys does R have?
- 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?