CS FundamentalsVery hardGATE CS
R(A, B, C, D, E, F) has functional dependencies A → BC, CD → E, E → A and B → F. It is decomposed into R1(A, B, C, F) and R2(A, C, D, E). Which statement is correct?
- A. It is lossy, because the common attributes A, C are not a key of R2
- B. It is lossless and dependency-preserving; R1 is in 2NF but not 3NF, and R2 is in 3NF but not BCNF
- C. It is lossless but not dependency-preserving, because B → F is lost
- D. It is lossless and dependency-preserving, and both R1 and R2 are in BCNF
Correct answer: B. It is lossless and dependency-preserving; R1 is in 2NF but not 3NF, and R2 is in 3NF but not BCNF
A⁺ = ABCF, so the common part A, C is a key of R1 and the join is lossless; every FD lies inside R1 or R2. R1 has key A and the transitive B → F, so it is 2NF only. R2 has keys AD, CD and DE; E → A violates BCNF, but A is prime, so R2 is in 3NF.
More DBMS and SQL questions
- R(A, B, C, D, E) has functional dependencies A → C, B → D and CD → E. It is decomposed into R1(A, C), R2(B, D) and R3(A, B, E). Is the…
- R(A, B, C, D, E) has functional dependencies AB → CDE, C → A and D → E. What is the highest normal form R satisfies?
- R(A, B, C, D, E) has functional dependencies BC → A, A → B, D → E and E → D. How many candidate keys does R have, and what is its highest…
- A clinic stores Booking(patient, specialty, doctor). Each doctor has exactly one specialty, and each patient sees exactly one doctor per…
- Which serial order is conflict-equivalent to the schedule R2(A), R1(B), W3(A), W1(C), R3(C), R4(B), W4(A)?
- Classify the schedule R2(X), W1(X), W2(X), W3(X) (all transactions commit afterwards).