in Databases
1,099 views
1 vote
1 vote
decompose relation into 2NF ,3NF,BCNF

R(ABCDE) {AB--->C, DE----->C , B------->D}

R(ABCD) {AB----->C,C-------->D,D-------->A}
in Databases
1.1k views

2 Answers

3 votes
3 votes
Best answer

For R(ABCDE) :
    Decomposition into  3NF = [{ABC}, {BD}, {DEC}, {ABE}]
    Decomposition into  BCNF = [{ABC}, {BD}, {ABE}] or [{ABE}, {BD}, {DEC}]

For R(ABCD) :
    Decomposition into  3NF = [{ABC}, {CD}, {AD}]
    Decomposition into  BCNF = [{ABC}, {CD}]

selected by

4 Comments

why u specify table {ABE} in R(ABCDE) as all dependency are being present in {ABC}, {BD}, {DEC}??

0
0
dependency D------>A  not present in relation .??
0
0
to make the decomposition Lossless.

because BCNF decomposition need not be dependency preserving.
0
0

thanku this thing was not know to me..yes

0
0
0 votes
0 votes
a) Candidate key = {ABE}

R(ABCDE) can be decomposed to R1(ABC),  R2(BD) and R3(BE). this relation is in 2nf, 3nf and bcnf

b) Candidate key = {AB, BC, BD}

Decomposition into R1(ABC) & R2(ACD) gives a relation in 2NF as candidate key for R1 is {AB} and R2 is {C}.

Now, further decomposition of the relation R1 into R3(CD) and R4(AD) gives decomposition into 3NF. Thus, relations in 3NF will be R3, R4 and R1. This relation is in BCNF too.
edited by

4 Comments

yes u r rt!! but ABC ⋂ BD gives B which is key for relation BD .????
0
0

that's correct, but later when we combine new relation R12(ABCD) and R3(BE); its lossy

0
0

 R12(ABCD) and R3(BE); its lossy because B being common ,but it is not the key for  R12(ABCD) and R3(BE)..!

0
0

Related questions