in Databases
612 views
1 vote
1 vote
$R(X,Y,Z,W) is\  decomposed\  into \\ R_1(X,Y)\\ R_2(Y,Z)\\ R_3(Y,W).\\The\  FDs\  are\ :\\ X -> Y,\\ Z->Y,\\ Y->W \\ Find\ whether\ the\ decomposition\ is\ lossless\ or\ lossy\ ?$
in Databases
612 views

4 Comments

it is lossy.
3
3
Lossy and FD preserving
2
2

R1&R3 will be combined ...but for R2

Let consider this example:-

X Y Z W

2  2  3  6

3  2  4  7

1 2   2   8  

 Now consider decomposition R2:-

Y  Z

2  3 

2  4

2   2  

R1R3=R'

X Y W

2  2  6

3  2  7

1 2   8  

now th3 natural join of R' and R2 wil give following relation:-

X Y Z W

9 touples...not like the old table

therefor

Lossy decomposition

2
2
Lossy and FD preservi
0
0

2 Answers

1 vote
1 vote
LOSSY

(X,Y) AND (Y.Z) HAS COMMON ATTRIBUTE Y WHICH IS NOT A PRIMARY KEY OF ANY OF THE TABLE(R1 OR R2).
1 vote
1 vote

lossy..

Related questions

1 vote
1 vote
1 answer
1
Mk Utkarsh asked in Databases Jan 12, 2018
1,015 views
Mk Utkarsh asked in Databases Jan 12, 2018
1.0k views
3 votes
3 votes
4 answers
3