CS FundamentalsVery hardGATE CS
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 decomposition lossless?
- A. No, because R1 and R2 share no attribute
- B. No, because CD → E is not preserved, so information is lost
- C. Yes, because joining R1 and R2 first gives a key of R
- D. Yes: in the chase, R3's row gets C from A → C and D from B → D, becoming all-known
Correct answer: D. Yes: in the chase, R3's row gets C from A → C and D from B → D, becoming all-known
Lossless-join is tested on the whole decomposition: R3's row matches R1's on A and R2's on B, so it gains C and D, and with E already present becomes a full row. Order of joining does not matter, and dependency preservation is a separate property.
More DBMS and SQL questions
- 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).
- Classify the schedule W1(X), W2(X), R3(X), C3, C1, C2 (Ci = commit of Ti).