Lossless Joins in Relational Decomposition

Show when projecting a relation into two schemas and joining them reconstructs each tuple without producing spurious combinations.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. The common attributes must constrain the join
  2. Without that fact, projection can erase pairing information

The common attributes must constrain the join

Decompose \(R(A,B,C)\) into \(AB\) and \(BC\), and assume \(B\to C\). Every original tuple appears in the join of its projections. For the other direction, any \(AB\) tuple arose with some \(C\) in \(R\). Every projected \(BC\) tuple with the same \(B\) has that same \(C\), so joining cannot introduce a new combination. A shared determinant of one projected side is sufficient for this binary lossless decomposition under set semantics.

Without that fact, projection can erase pairing information

Rows \((a_1,b,c_1)\) and \((a_2,b,c_2)\) project to pairs that rejoin into four combinations, including two never present. The duplicate possibilities reflect lost association rather than an implementation bug. Functional dependencies state why a shared attribute constrains this case. Dependency preservation analyzes a separate requirement for checking rules after decomposition.[1][2]

References

  1. Edgar F. Codd, A Relational Model of Data for Large Shared Data Banks ↩
  2. CMU 15-445/645, Introduction to Database Systems: Lectures ↩