1. Gyanastra
  2. Database Systems
  3. Decomposition
  4. Lossless Decomposition: Motivation and Properties
Free lesson, no account needed 4 min read 19 practice questions after it
Asked in past papers15 times
  • GATE CSE20252021201920082005200220011998
  • ISRO2014
  • UGC NET202320172016201520122008

Database Systems · Decomposition

Lossless Decomposition: Motivation and Properties

Overview

Normalization works by decomposing one large table into smaller tables, but an arbitrary split is not safe. Every decomposition must be tested to confirm that recombining the smaller tables reproduces exactly the original data, with nothing lost and nothing extra.

Key concepts

  • Normalization and decomposition: Normalization mostly involves decomposing a table — a single big table is generally divided into smaller tables.
  • Decomposition is not arbitrary: Whenever a table is decomposed into many smaller tables, certain properties must be checked and verified.
  • Lossless recombination (the property): When the small tables are later combined back into the original table, the number of tuples and the data must not get altered.
    • There must be no way to lose data — no tuple of the original table may disappear.
    • At the same time, the recombination might sometimes produce extra data — tuples that were never in the original table; such a decomposition is defective.
  • Lossless-join (non-additive join) property: The name of the property being described.
  • Spurious tuples: The extra tuples produced on recombination.
Figure. Lossless or lossy: rejoin and compare with r

How it works

  1. Start with a large table and decompose it into several smaller tables.
  2. Later, queries may be based on all the small tables together, so the small tables may have to be combined (joined) back.
  3. Check the result of the recombination:
    • If the join returns exactly the original set of tuples → the decomposition is acceptable (lossless).
    • If tuples of the original table are missing → data is lost.
    • If additional tuples appear that were not in the original table → the decomposition produces spurious information and is not acceptable.
  4. Before accepting any decomposition, test it for this property; an arbitrary splitting of the table into small tables is not safe.

Worked examples

The test of a decomposition is performed by comparing the original table with the result of combining the decomposed tables:

  • Join result = original tuples → lossless, acceptable.
  • Join result missing original tuples → data loss, not acceptable.
  • Join result containing tuples not in the original → spurious tuples, not acceptable.

Revision summary

  • Normalization = decomposing a big table into smaller tables.
  • Every decomposition must be checked for the required properties; never decompose blindly.
  • On recombining the decomposed tables, the data must remain unaltered: no data loss.
  • A bad decomposition may also generate extra data (tuples not present in the original table) even when nothing is lost.
  • The test of a decomposition compares the original table with the result of combining the decomposed tables.
  • The property is the lossless-join (non-additive join) property; the extra tuples are spurious tuples.

Previous-year exam insights

  • Binary lossless-join test: a decomposition of R into R1 and R2 is lossless iff (R1 ∩ R2) → (R1 − R2) or (R1 ∩ R2) → (R2 − R1) holds in F+; equivalently, the common attributes must contain a key of at least one of the two subrelations.
    Asked inGATE 2025GATE 2019GATE 2008UGC NET 2015UGC NET 2016
  • For a decomposition into more than two relations, use the matrix (chase) test: build a table with one row per subrelation and one column per attribute, put a distinguished symbol where the attribute belongs to the subrelation and a distinct non-distinguished symbol otherwise; repeatedly apply each FD X → Y by equating the Y-entries of rows that agree on X. The decomposition is lossless iff some row becomes all distinguished.
    Asked inGATE 2021GATE 2008UGC NET 2017UGC NET 2023
  • A lossy decomposition always yields a join result that is a strict superset of the original relation (r ⊂ r1 ⋈ r2); the join can never lose tuples, so 'lossy' means extra spurious tuples, not missing tuples.
    Asked inGATE 2005
  • Lossless join and dependency preservation are independent properties: a decomposition can be lossless but not dependency preserving, dependency preserving but lossy, both, or neither; every relation always has a lossless BCNF decomposition, but a dependency-preserving BCNF decomposition may not exist (3NF always allows both).
    Asked inGATE 2002GATE 2001GATE 2019GATE 2008
  • Dependency preservation test: a decomposition is dependency preserving iff the union of the projections of F onto each subrelation logically implies every FD of F, i.e. (∪ π_Ri(F))+ = F+.
    Asked inGATE 2002GATE 2001GATE 2019UGC NET 2017
  • A binary decomposition is lossless iff the common attribute set is a superkey of at least one of the two decomposed relations; if the common attributes are empty or form only a partial/foreign key, the join is lossy.
    Asked inGATE 1998UGC NET 2016
Pages 1–2 of 2