CS FundamentalsVery hardProduct company interview · GATE level

R(A, B, C, D) with functional dependencies A → B, B → C and C → D is decomposed into R1(A, B), R2(B, C) and R3(A, D). Which statement about this decomposition is correct?

  1. A. It is lossless and dependency preserving
  2. B. It is lossless but not dependency preserving
  3. C. It is lossy but dependency preserving
  4. D. It is lossy and not dependency preserving

Correct answer: B. It is lossless but not dependency preserving

Lossless: R1 and R3 share A, and A is a key of both, so joining them gives (A, B, D) without spurious tuples; that result shares B with R2, and B → C makes B a key of R2, so the second join is lossless too. Dependency preservation: A → B is in R1 and B → C in R2, but C and D never appear together. R3 only carries A → D, and from A → B, B → C and A → D one cannot derive C → D (the closure of C is just {C}). So C → D can be checked only by joining, and the decomposition is not dependency preserving.

More DBMS and SQL questions

Exams that ask this topic