← RGPV CS-502 DBMS November 2022 solved question paper
RGPV CS-502 (GS) | November 2022 | Q5(b) | 7 marks
Question (restated): For R(A,B,C,D) with A→B, B→C, C→D, D→A, test dependency preservation of AB, BC and CD.
Answer

A decomposition is dependency preserving when the union of dependencies projected onto the component relations logically implies all original functional dependencies. Projection includes dependencies implied by F, not merely dependencies explicitly written in F.
Step 1: Compute implied dependencies
The dependencies form a cycle. A determines B, C and D; similarly B, C and D each determine all attributes. Hence B→A follows from B→C→D→A, C→B follows from C→D→A→B, and D→C follows from D→A→B→C.
Step 2: Project onto each relation
| Relation | Nontrivial projected dependencies |
|---|---|
| AB | A→B, B→A |
| BC | B→C, C→B |
| CD | C→D, D→C |
Step 3: Check original dependencies
A→B, B→C and C→D are directly present. D→A follows from D→C, C→B and B→A by transitivity. Thus all original dependencies follow from the projected union. Conversely each projected dependency follows from F by definition.
Conclusion: The decomposition is dependency preserving. Simply checking whether D→A appears explicitly in a component would incorrectly conclude that it is not preserved.
Additionally, AB and BC share B, which determines both; joining their result with CD shares C, which determines CD. The decomposition is also lossless under these dependencies, although losslessness is a separate property.
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