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?

  1. A. No, because R1 and R2 share no attribute
  2. B. No, because CD → E is not preserved, so information is lost
  3. C. Yes, because joining R1 and R2 first gives a key of R
  4. 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

Exams that ask this topic