









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Given R(A, B, C, D, E, H) with
Lossless Decomposition
Lossless Decomposition Testing (2)
Lossless Decomposition Testing (3) For the case of decomposition of a schema into
R1(AD) a1 b12 b13 a4 b R2(AB) a1 a2 b23 b24 b R3(BE) b31 a2 b33 b34 a R4(CDE) b41 b42 a3 a4 a R5(AE) a1 b52 b53 b54 a
Lossless Decomposition Testing (3) Cont. C->D, we get
R1(AD) a1 b12 b13 a4 b R2(AB) a1 a2 b13 a4 b R3(BE) b31 a2 b13 a4 a R4(CDE) b41 b42 a3 a4 a R5(AE) a1 b52 b13 a4 a DE->C A B C D E R1(AD) a1 b12 b13 a4 b R2(AB) a1 a2 b13 a4 b R3(BE) b31 a2 a3 a4 a R4(CDE) b41 b42 a3 a4 a R5(AE) a1 b52 a3 a4 a
Lossless Decomposition Testing (3) Cont. CE->A A B C D E R1(AD) a1 b12 b13 a4 b R2(AB) a1 a2 b23 a4 b R3(BE) a1 a2 a3 a4 a R4(CDE) a1 b42 a3 a4 a R5(AE) a1 b52 a3 a4 a
Dependency Preservation Cont. The set of restrictions F1,F2,…Fn is the set of dependencies that can be checked efficiently. We need to know whether testing only the restrictions is sufficient. Let F’ = F1 U F2 U….Fn. F ’ is a set of functional dependencies on schema R , but in general, F’ != F.
Dependency Preservation Cont.
For example, given F={AB->C, C->A}, R1(AC) and R2(BC). F’ = {C->A}. F – F’ = {AB->C}. AB->C can not be derived from F’. So, it is not a dependency-preserving decomposition.