CS FundamentalsVery hardGATE

A relation R(A, B, C, D) decomposes into R1(A, B) and R2(A, C, D). For this decomposition to be DEPENDENCY PRESERVING, what must hold?

  1. A. R1 and R2 must have no attributes in common at all
  2. B. Every functional dependency in the original set (or one logically implied by it) must be verifiable using only the attributes within a single one of R1 or R2 (i.e. the union of the FDs implied within each piece, plus any FDs across the split via shared attributes, must imply every original FD)
  3. C. The decomposition must always be lossless as well, with no separate condition needed
  4. D. Dependency preservation is automatic for any binary decomposition

Correct answer: B. Every functional dependency in the original set (or one logically implied by it) must be verifiable using only the attributes within a single one of R1 or R2 (i.e. the union of the FDs implied within each piece, plus any FDs across the split via shared attributes, must imply every original FD)

Dependency preservation means you can check every one of the original FDs without needing to join R1 and R2 back together — each original FD (or something that implies it) must be derivable purely from the FDs that 'fit inside' R1 alone or R2 alone. This is a separate property from losslessness: a decomposition can be lossless but fail to preserve dependencies (a classic BCNF decomposition trade-off), or vice versa.

More DBMS and SQL questions

Exams that ask this topic