Professional Documents
Culture Documents
If there is P.D then find out the closure of the left hand side attribute the causes the
P.D for the relation.
A+={ADE}
B+={BFGH}
Normalization - Problems
SECOND NORMAL FORM:
If there is P.D then find out the closure of the left hand side attribute the causes the
P.D for the relation.
R={ABCDEFGHIJ}
A+={ADE}
B+={BFGH}
Solution:Solution:
First find out the key for the relation R.
AB+ =ABCDEF
So AB is the key.
If there is P.D then find out the closure of the left hand side attribute the causes the
P.D for the relation.
R={ABCDEF}
A+={AFCD}
B+={BE}
Solution:
If there is P.D then find out the closure of the left hand side attribute the causes the
P.D for the relation.
R={ABCDE}
A+={ABE}
C+={CD}
Normalization - Problems
SECOND NORMAL FORM:
Solution:
First find out the key for the relation R.
AB+=ABCI
BD+=BDEF
AD+=ADGHIJI
No key is formed , then go for the combination of attributes.
Key= ABD
B+=B R12=ABC
B+=B
R2=BDEF ------------ No Splitting R2=BDEF
D+=D
A+=AI R31=AI
R3 = ADGHIJ
D+= D R32=ADGHJ
R4=ABD
Final Tables are: AI, ABC, BDEF, ADGHJ, ABD
Normalization - Problems
THIRD NORMAL FORM:
Consider the relation
R( A B C D E F G H I J) and FD ares
AB->C, A->DE, B->F, F->GH, D->IJ
Normalize Up to 3NF
R( A B C D E F G H I J) and FD are s
AB->C, A->DE, B->F, F->GH, D->IJ
After 2nd Normalization the tables are: R1=ADEIJ, R2==> BFGH, R3=> ABC
Normalization - Problems
THIRD NORMAL FORM:
R( A B C D E F G H I J) and FD are s
AB->C, A->DE, B->F, F->GH, D->IJ
After 2nd Normalization the tables are: R1=ADEIJ, R2==> BFGH, R3=> ABC
Next Step is to find out the tables which have the transitive dependency if any…….
Yes there is Transitive dependency in the table
R11=D+=DIJ
R1=AEDIJ
R2= R1-R11 + with Key attributes of R11 =ADE
Normalization - Problems
THIRD NORMAL FORM:
Next Step is to find out the tables which have the transitive dependency if any…….
Yes there is Transitive dependency in the table……
R21=F+=FGH
R2=BFGH
R22= R21-R22 + with Key attributes of R22 =BF
Total no of tables after 3NF are: R1=DIJ, R2=ADE, R3=FGH, R4=BF, R5=ABC
Normalization - Problems
THIRD NORMAL FORM:
Solution:
First find out the key for the relation R.
AB+ =ABCDEF
So AB is the key.
If there is P.D then find out the closure of the left hand side attribute the causes the
P.D for the relation.
R={ABCDEF}
A+={AFCD}
B+={BE}
If there is T.D then find out the closure of the left hand side attribute the causes the
T.D for the relation. [C->D]
Normalization - Problems
THIRD NORMAL FORM:
If there is T.D then find out the closure of the left hand side attribute the causes the
T.D for the relation. [C->D]
R11=ACF
R1=ACDF
R12=CD
Total no of table after third normal form is: R11=ACF , R12=CD, R2=BE , R3=AB
Normalization - Problems
THIRD NORMAL FORM:
Solution:
If there is P.D then find out the closure of the left hand side attribute the causes the
P.D for the relation.
R={ABCDE}
A+={ABE}
C+={CD}
Normalization - Problems
THIRD NORMAL FORM:
Solution:
First find out the key for the relation R.
ABD+ =ABCDEFGHIJ
So ABD is the key.
If there is P.D then find out the closure of the left hand side attribute the causes the
P.D for the relation.
R={ABCDEFGHIJ }
R1=AB+->ABC,
R2= BD+=BDEF,
R3= AD+=ADGHJ,
R4=A+=AI
R5=ABD
H+=R31=HJ
R3={ADGHJ}
R32=ADHG
find out the closure of the left hand side attribute the causes the P.D for the relation.
R={ABCDEF}
R1= A+=ADE
R2=B+=BC
R3=ABF
S1 B4 9 S2 Amit Asst
S2 B2 14
S2 B4 12
Normalization
THIRD NORMAL FORM:
First we have to find out the functional dependency of the above table
BC->D
AC->D
B->A
A->B
Normalization
THIRD NORMAL FORM:
First we have to find out the functional dependency of the above table
BC->D
AC->D
B->A
A->B
Here there is PD
R1=A+=AB
R2=ACD
find out the closure of the left hand side attribute the causes the P.D for the relation.
R={ABCDEF}
R1= A+=AB
R2=ACDE order itemcode quantity
no