732 views
1 votes
1 votes

In the relation R(ABCD) , AB-->C , C-->AD 
How should the table be decomposed so that it is in BCNF , One decomposed relation will be ACD ,what should be other should it be BC , but if it is then there is no functional dependency corresponding to it and if I do ABC , then I have C-->A but C is not a superkey in ABC , so how should the decomposition be done ?

3 Answers

2 votes
2 votes

Here , in this example , BCNF & Dependency preservation is not simultaneously possible.

This type of problem occurs when we have AB -> C , C -> A type of Dependency.


R1 (A C D)   , R2 (B C)  - If we decompose like this we are having BCNFbut AB -> C dependency is lost.

1 votes
1 votes

R(ABCD)

AB-->C C-AD

we can see candidate key here is{AB,BC}

For BCNF the FD Set:

X-->Y

where x should be super key

but we can see that C-->AD failed to satisfy bcnf.

Decompose into

R1(ABC)      R2(CD)    R3(AC)

AB-->C.         C-->D.      C-->A

Key{AB}       Key{C}     Key{C}

Minimum 3 table required ,2 Foreign key required.

BCNF not satisfied ,dp decomposition satisfied. If you want to satisfy BCNF You will definitely loose dp decomposition.
edited by

Related questions