Lossless join decomposition

From HandWiki

In database design, a lossless join decomposition is a decomposition of a relation r into relations r1,r2 such that a natural join of the two smaller relations yields back the original relation. This is central in removing redundancy safely from databases while preserving the original data.[1] Lossless join can also be called non-additive.[2]

Definition

A relation r on schema R decomposes losslessly onto schemas R1 and R2 if πR1(r)πR2(r)=r, that is r is the natural join of its projections onto the smaller schemas. A pair (R1,R2) is a lossless-join decomposition of R or said to have a lossless join with respect to a set of functional dependencies F if any relation r(R) that satisfies F decomposes losslessly onto R1 and R2.[3]

Decompositions into more than two schemas can be defined in the same way.[4]

Criteria

A decomposition R=R1R2 has a lossless join with respect to F if and only if the closure of R1R2 includes R1R2 or R2R1. In other words, one of the following must hold:[4]

  • (R1R2)(R1R2)F+
  • (R1R2)(R2R1)F+

Criteria for multiple sub-schemas

Example

  • Let R={A,B,C,D} be the relation schema, with attributes A, B, C and D.
  • Let F={ABC} be the set of functional dependencies.
  • Decomposition into R1={A,B,C} and R2={A,D} is lossless under F because R1R2=A and we have a functional dependency ABC. In other words, we have proven that (R1R2R1R2)F+.[5][6]

References

  1. Pohler, K (2015). "Lossless-Join Decomposition: applications in quantitative computing metrics". International Journal of Applied Computer Science 21 (4): 190–212. 
  2. Elmasri, Ramez (2016). Fundamentals of database systems (Seventh ed.). Hoboken, NJ: Pearson. p. 461. ISBN 978-0133970777. 
  3. Maier, David (1983). The theory of relational databases. Computer Science Press. pp. 101. ISBN 0-914894-42-0. http://web.cecs.pdx.edu/~maier/TheoryBook/MAIER/C06.pdf. Retrieved 16 August 2024. 
  4. 4.0 4.1 Ullman, Jeffrey D. (1988). Principles of Database and Knowledge-base Systems (1 ed.). Computer Science Press. p. 397. ISBN 0-88175188-X. http://www.lsv.fr/~goubault/BD/ullman-principles-of-database-and-knowledge-base-systems-volume-1.pdf. Retrieved 16 August 2024. 
  5. "Lossless-Join Decomposition". http://www.cs.sfu.ca/CourseCentral/354/zaiane/material/notes/Chapter7/node7.html. 
  6. "www.data-e-education.com - Lossless Join Decomposition". http://www.data-e-education.com/E121_Lossless_Join_Decomposition.html.