Normalization
Normalization
MANAGEMENT
SYSTEM
Contents
Need of Normalization
Types of Normalization
• Insertion Anomaly
• Updation Anomaly
• Deletion Anomaly
STUDENT BRANCH
RN Nam Ag B_ID B_ID B_Nam HOD Ph.
e e e
1 A 20 101 101 CS XYZ 123
2 B 21 101 102 IT PQR 456
3 C 18 102
4 D 20 102
5 E 22 101
• Insertion Anomaly
• Updation Anomaly
• Deletion Anomaly
Steps in normalization
FIRST NORMAL FORM
No multivalued attributes
Every attribute value is atomic
Fig. 5-25 is not in 1st Normal Form
(multivalued attributes) it is not a
relation
Fig. 5-26 is in 1st Normal form
All relations are in 1st Normal Form
Table with multivalued attributes, not in 1st normal form
Table with no multivalued attributes and unique rows, in 1st
normal form
Prime Non-Prime
Non-Prime Non-Prime
N/P Prime
A relation is said to be in 2nd normal form if it is in 1st
normal form and there is no partial functional
dependency in any of the functional dependency.
function dependency:-
AB CD C. K.= {AB, BD, BC} BCNF X
3NF
DA
BC DE
FIND THE HIGHEST NORMAL FORM
Consider the relation R ( A, B, C ) and following function
dependency:-
AB C. K.= { A, B, C } BCNF
BC
CA
Consider the relation R ( A, B, C, D, E, F, G, H, I ) and
FFD
EXAMPLE OF BCNF
T1 ( P_No, App_No, Time, Doctor) 3 NF
BCNF
T2 ( P_No, P_Name)
PFD
FFD
EXAMPLE OF BCNF
T1 ( P_No, Time, Doctor) BCNF
T2 ( P_No, P_Name)
BCNF
BCNF
T3 (Time, App_No)
PFD
FFD
THANKS