Question #156611

Consider the relation schema R=(A, B, C, D) with functional dependency F as follows

A BC

B D

D B



Show a decomposition of R into R1 and R2 so that each relation of the decomposition is

in BCNF and also dependency preservation is achieved.


Expert's answer

R=(A,B,C,D)R=(A,B,C,D)

A→BC,B→D,D→BA\to BC, B\to D, D\to B

The relation RR has transitive dependence: D→BD\to B , B→DB\to D .

So, the decomposition with relations in BCNF is:

R1=(A,B,C)R_1=(A,B,C)

R2=(B,D)R_2=(B,D)

The decomposition is dependency preserving because:

A→B,B→D  ⟹  A→DA\to B, B\to D \implies A\to D


LATEST TUTORIALS
APPROVED BY CLIENTS