CS FundamentalsVery hardGATE CS
R(A, B, C, D, E, F, G) has functional dependencies A → B, BC → D, D → E, E → C and F → G. How many candidate keys does R have?
- A. 1
- B. 2
- C. 4
- D. 3
Correct answer: D. 3
A and F appear on no right side, so AF is in every key, and AF⁺ = ABFG. Adding any one of C, D, E closes the cycle (C → D via B, D → E, E → C), so the keys are ACF, ADF and AEF.
More DBMS and SQL questions
- 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?
- 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?