What is a lossless-join decomposition, and what is dependency preservation?
HardConceptNormalization
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
RintoR1andR2is lossless if their common attributes form a super key ofR1or ofR2. - 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 columnrollis a key of both, so the join is lossless. - Split into
(roll, dept)and(name, dept): the common columndeptis not a key. If Asha (roll 1) and Ravi (roll 2) are both in CSE, joining ondeptreturns four rows, including the false rows(1, Ravi)and(2, Asha), so the split is lossy.