Skip to content
We areTOP 1%

What is a lossless-join decomposition, and what is dependency preservation?

HardConceptNormalization
Track your progress
First attempt
Re-solve after a few days
Final pass before interviews

Answer

When a table R is split into smaller tables during normalization, the split must not lose information, and ideally it should keep every rule checkable.

  • Lossless join: joining the smaller tables back gives exactly the original rows, with no extra (spurious) rows. Splitting R into R1 and R2 is lossless if their common attributes form a super key of R1 or of R2.
  • Dependency preservation: every original functional dependency can still be checked inside a single smaller table, without a join.
  • Losslessness is mandatory; dependency preservation is desirable. 3NF can always achieve both, while BCNF sometimes has to give up preservation.

Example: R(roll, name, dept) with roll -> name, dept:

  • Split into (roll, name) and (roll, dept): the common column roll is a key of both, so the join is lossless.
  • Split into (roll, dept) and (name, dept): the common column dept is not a key. If Asha (roll 1) and Ravi (roll 2) are both in CSE, joining on dept returns four rows, including the false rows (1, Ravi) and (2, Asha), so the split is lossy.

More in Normalization

Sign in to track your progress

Your checkboxes, streak and activity heatmap are saved to your account and sync across devices. It is free.
Sign in with email

New here? Create an account