← RGPV CS-502 DBMS December 2020 solved question paper
CS-502 (CBGS) | December 2020 | Q5(b) | 7 marks
Question (restated): Explain lossless decomposition and its usefulness.
Answer
Decomposition divides a relation schema into smaller schemas to reduce redundancy and anomalies. It is lossless if joining the projections of every legal original relation reconstructs exactly that relation, without losing tuples or generating spurious tuples.
For a binary decomposition of R into R1 and R2, the decomposition is lossless with respect to functional dependencies F if the common attributes functionally determine R1 or R2 under F+. Consider R(A,B,C) with A→B and B→C. Decompose into AB and BC. Their intersection is B, and B→C implies B→BC. Hence the decomposition is lossless.
Example: original tuples (1,X,Delhi), (2,X,Delhi), (3,Y,Bhopal). AB contains (1,X),(2,X),(3,Y); BC contains (X,Delhi),(Y,Bhopal). Joining on B reconstructs exactly the three original tuples.
A lossy example uses R(A,B,C) with tuples (1,X,P),(2,X,Q), decomposed into AB and BC without B→C. The join creates (1,X,Q) and (2,X,P) in addition to the original tuples. These are spurious combinations.
Lossless decomposition is essential during normalization because it preserves the information represented by the original schema. Dependency preservation is a separate property: it means original dependencies can be enforced using individual fragments without joining them. A decomposition may be lossless without preserving every dependency. For more than two fragments, the chase test can be used to establish losslessness. A good design balances both properties with query performance.

Further reading: Silberschatz, Korth and Sudarshan, Database System Concepts.
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion