2,031 views
2 votes
2 votes

Q.Let R (X, Y, Z, W) be a relational schema with the following functional dependencies:
                                    X→ Y, Y → Z, Z → W and W → Y.
The decomposition of R into (X, Y), (Y, Z), (Y, W) it is asked to find whether it is lossless join and dependency preserving or not ?


I am sure it is lossless join,but couldn't figure how it is dependency preserving.

1 Answer

0 votes
0 votes

 All dependency directly mapping to tables except Z-->W

To map this, we need to check whether there is any way to drive Z-->W transitively.

for table YZ , Z-->Y is also there if you do Z+

SimiIarly, for table YW, Y-->W is also there if you do Y+

XY YZ YW
X-->Y Y-->Z W-->Y
  Z-->Y Y--W
     

NOW, Z-->W Can be determine transitively. Hence Dependency preserving

Related questions

0 votes
0 votes
1 answer
1
1 votes
1 votes
0 answers
2