7-Normalization Part 2
7-Normalization Part 2
Topic: Normalization
Normalization
• Normalization rules divides larger tables into smaller tables and links
them using relationships.
EMPLOYEE table:
EMP_ID EMP_NAME EMP_PHONE STATE
2925 RAJESH 9500407832, TAMILNADU
9088170884
6796 KISHORE 9510508668 KARNATAKA
4592 ALOK 8455661732 PUNJAB
3565 HEMANT 9759105522, GUJRAT
9414525254
First Normal Form (1NF)
The decomposition of the EMPLOYEE table into 1NF has been
shown below:
1. X is a super key.
2. Y is a prime attribute, i.e., each element of Y is part of some candidate key.
Third Normal Form (3NF)
EMPLOYEE_DETAIL table:
EMPLOYEE table:
EMPLOYEE_ZIP Table:
Boyce-Codd Normal Form (BCNF)
• BCNF is the advance version of 3NF. It is stricter than 3NF.
• A table is in BCNF if every functional dependency X → Y, X is the super
key of the table.
• For BCNF, the table should be in 3NF, and for every FD, LHS is super key.
Boyce-Codd Normal Form (BCNF)
In the above table Functional dependencies are as follows:
• EMP_ID → EMP_COUNTRY
• EMP_DEPT → {DEPT_TYPE, EMP_DEPT_NO}
References