2,376 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
272
272 views
GO Classes asked Feb 17
272 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
257
257 views
GO Classes asked Feb 17
257 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
222
222 views
GO Classes asked Feb 17
222 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
261
261 views
GO Classes asked Feb 17
261 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...