edited by
1,114 views
3 votes
3 votes
Doubts : -

1. R(A,B,C,D) and The Functional Dependencies are =  AB->C, C->AD . So when I'll decompose it then it will be R1(A,B,C) and R2(C,D).We cannot do R1(A,B,C) and R2(C,A,D) because the Production C->A will become redundant because this production is already available in R1 isn't it?

2. Say R(A,B,C,D) and FD are = A->B, B->C, C->D . We decompose it as R1 = (A,B), R2 = (B,C),R3 = (C,D).

Now to check whether its lossless we will find common attribute between relation which should be the candidate key in any one of the relations So :-

R1 intersection  R2 = B  --->which is candidate key in R2

R2 intersection  R3 = C  --->which is candidate key in R3

Do we have to check R1 intersection R3 as well ? because if we do then it wont be lossless as there isn't any common attribute.

Please tell the right way to check.
edited by

1 Answer

Best answer
1 votes
1 votes

if a relation R is decomposed into two relation R1 and R2 then it must be lossless and dependency preserving.

1) both decomposition is right bcz both are lossless and dependency preserving.

2)if a relation R is decomposed into R1 , R2 and R3 . FOR LOSSLESS we intersect R1 and R2 . if this is key then at first join it and it become R12. now we can again intersect R12 and R3 . if we get candidate key then we can join it. 

look at this solution.

selected by

Related questions

1 votes
1 votes
2 answers
3
Balaji Jegan asked Jul 9, 2018
742 views
Consider R(B->D, C->B, D->A)Consider the following 2 decompositions : R1(ABC) and R2(CD).Whether this is a lossless decomposition?Whether this is a lossless decomposition...