2,412 views
1 1 vote
decompose relation into 2NF ,3NF,BCNF

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

R(ABCD) {AB----->C,C-------->D,D-------->A}

2 Answers

Best answer
3 3 votes

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
0 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
Position:
Show:

Related questions

0 0 votes
0 0 answers
275
275 views
GO Classes asked Feb 17
275 views
Find correct query for counting Teamsize.SQL Query $1$ SQL Query $2$ SQL Query $3$ SQL Query $4$  
1 1 vote
0 0 answers
263
263 views
GO Classes asked Feb 17
263 views
Consider two relations $R$ and $S$ with attributes $p$ and $s$.The following tuple relational calculus (TRC) query is given:\[\{\, t \mid t \in R \ \land\ (\exists z \in...
0 0 votes
0 0 answers
230
230 views
GO Classes asked Feb 17
230 views
Relational Algebra Question.The query was like, $\pi (\sigma\dots\bowtie\dots)\bowtie(\sigma\dots\bowtie\dots)$Asking : no. of tuples in output.zero tuple one tuple two t...
0 0 votes
1 1 answer
268
268 views
GO Classes asked Feb 17
268 views
Consider the ER Model with two entity set :$E_1 (a_{11}, a_{12}, a_{13})$ $E_2 (a_{21}, a_{22}, a_{23})$where, $a_{11}$ is primary key.$a_{21}$ is primary key.$a_{22}$ is...