Relation R (A,B,C,D,E,F)
Functional dependency: ABC -->DEF, BC-->EF, EF-->D.
Decomposition: R1 (ABCDF), R2 (BCDE). Is this decomposition lossy?
Is this decomposition preserve functional dependency?
Plz explain how to check functional dependency is preserved or not in decomposition.
@Lakshman Patel RJIT I think it is both Lossless Decomposition as well FDs are preserved!
Which FDs do you think is lost in this decomposition?
@Shivam Kasat how can you explain?
@Lakshman Patel RJIT
BCD is the key in $R_2$.===> Lossless
@Shivam Kasat
there is no FD like BC --> D.
So it looses the FD: EF -> D ===> FD not preserving
@Lakshman Patel RJIT Sorry Brother My fault! Yes the Given relation decomposition is lossless and FDs are not preserved as due to this decomposition we are losing the Functional dependency EF->D,
@Shaik Masthan BC->EF and EF->D => BC->D
so R2 can have the FD BC->D
Correct me if I am wrong
@Shaik Masthan
In $R_{1}(\underline {A,B,C},D,F)$
$ABC\rightarrow DF$
and in $R_{2}(\underline{B,C},D,E)$
$BC\rightarrow DE$
@ Shivam Kasat
for R1: FD :- ABC--> DF, BC-->F,
for R2: FD:- BCD--> E (trivial BC --> E)
How will we get FD EF---> D from the set of FD of R1 and R2? That's why i think decomposition is not functionally preserve.
If i am wrong plz comment
The common attribute should be candidate key one of the relation.
that what i am asking, why it should be candidate key but why not Super Key ?
@Shaik Masthan Because it is necessary and sufficient that the common attributes must be a candidate key,
Since any one of the relations will have common attributes as candidate key on joining these two decomposed relation neither we will loss any of the tuple nor redundant tuples will get generated,
@Raj Kumar 7 Yes brother You are right! I didn't noticed relation R1 correctly
it is from korth Book,
Now read my statement
what you want to conclude @Shaik Masthan
@Shaik Masthan I think it is Lossless and dependency EF-->D not preserved.
the conclusion is
common attributes are need to be candidate key or super key
64.3k questions
77.9k answers
244k comments
80.0k users