677 views
0 votes
0 votes
Which of the following relation can decompose into BCNF with dependency preserving and lossless join decomposition.
(i) R(ABCDE) {AB → C, C → AB, C → D, D → E}
(ii) R(ABCDE) {AB → C, C → A, C → D, D → E}

A) only i

B) Only II

C) Both

D) Neither

1 Answer

Best answer
1 votes
1 votes
----for first relation,candidate key is AB and C.

so,all the FDs except D->E are in BCNF

now we will make a separate relation for D->E

so,now we got two relation R1(A,B,C,D) R2(D,E)

so,it is both lossless as well as dependency preserving.

---for second relation,candidate key is AB aand CB

so,here,except AB -> C,all are not in BCNF

so,we need to make separate relation for C->A ,C->D , D->E

now,we get 4 relations,R1(B,C) ,R2(C,A) ,R3(C,D) ,R4(D,E)

now we wont be able to derive id AB->C

and hence it is not a dependency preserving BCNF decomposition.

am i corect??
selected by

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
1 answer
2
learncp asked Jan 22, 2016
804 views
Given relation and the FDs applicable on it. How to check whether a given decomposition is lossless and dependency preserving?I know that for lossless we can easily chec...
0 votes
0 votes
1 answer
3
1 votes
1 votes
2 answers
4
aditi19 asked Apr 14, 2019
1,921 views
Decompose into BCNFR(A, B, C, D, E)FD: AB->C, C->D, D>B, D->E