GATE / CS ARCHIVE

GATE CSE 2002 / QUESTION 16(b)

Dependency preservation after decomposition

Database Management Systems · Normalization & Decomposition · Full GATE CSE 2002 paper

GATE 2002, Q16(b) Descriptive
Report issue

Normalization & Decomposition

Question 16(b), GATE 2002: R(L,M,N,O,P) has M→O,NO→P,P→L,L→MN and is decomposed into R1(L,M,N,P),R2(M,O). Original16(b): Is it dependency-preserving? If not, list dependencies not preserved.
Question 16(b), GATE 2002: R(L,M,N,O,P) has M→O,NO→P,P→L,L→MN and is decomposed into R1(L,M,N,P),R2(M,O). Original16(b): Is it dependency-preserving? If not, list dependencies not preserved.
Tap to enlarge
Answer & solution

Answer: No; NO→P is not preserved. (no official key was published)

Step through it (4 steps)

M→O is enforceable within R2, and P→L and L→MN within R1. The projection onto R1 also contains MN→P: M supplies O, then NO→P applies. Nevertheless NO→P cannot be recovered from the union of the projected dependency sets. In R1 no nontrivial dependency has determinant contained in {N}, since N+ under the original set is just {N}; in R2, O alone likewise determines nothing new. Thus the closure of {N,O} under the projected dependencies remains {N,O}, and does not contain P. Of the given dependencies, precisely NO→P is lost.
A concrete locally valid join illustrates the loss. Let R1 contain (L1,M1,n,P1) and (L2,M2,n,P2), with distinct Li,Mi,Pi, and let R2 contain (M1,o),(M2,o). Each component satisfies all its projected dependencies. Their join has the same (N,O)=(n,o) with different P values, violating NO→P.

Original paper, page 9