Normalization and Concept of Normal Forms
Normalization and Concept of Normal Forms
CHANDRAKANT CHARTI
BCA-III
NORMALIZATION
17 VIJAY 7754364466 CG
7898667777
20 ROHIT 9975759911 MP
15 DEV 8978977887 UP
Employee Table After Apply 1NF -
17 VIJAY 7754364466 CG
17 VIJAY 7898667777 CG
20 ROHIT 9975759911 MP
15 DEV 8978977887 UP
2NF (SECOND NORMAL
FORM)
o In the 2NF, relational must be in 1NF.
o In the second normal form all non-key attributes are fully functional
dependent on the primary key.
o In a table of the second normal form disallow or not contain any
partial dependency .
Example: Teacher Table -
TEACHER_ID TEACHER_AGE
1725 30
1747 35
1783 38
EACHER_SUBJECT TABLE-
TEACHER_ID SUBJECT
1725 CHEMISTRY
1725 BIOLOGY
1747 ENGLISH
1783 MATHEMATICS
1783 COMPUTER
3NF (THIRD NORMAL
FORM)
o A table will be in 3NF if, it is in 2NF and if there is NO TRANSITIVE
DEPENDENCY for Non-prime attributes.
o 3NF used to reduce the data duplication , it also used to achieve
the data integrity.
Example: Student Table -
STUDENT_NA ROLL_NO. PIN_CODE CITY STATE
ME
In the above student table, the column ‘Roll_No.’ is the primary key.
Pin_Code is a non-prime column but it is related to city and state, so
this table can be normalized using 3NF in the following way:-
STUDENT_NAME ROLL_NO. PIN_CODE
The above table can be converted into another table for addresses which can be as follows:
Address Table :
PIN_CODE CITY STATE
495001 BILASPUR CG
495221 KORBA CG
495770 CHAMPA CG
BCNF (BOYCE CODD NORMAL
FORM)
o Boyce-codd normal form (BCNF) is an advanced version of the third
normal form. It also known as 3.5NF.
o A table is in BCNF if , it is 3NF and for any dependency A B, A
should be a super key of relation.
o It is based on the concept of determinate.
o It is Stricter form of 3NF.
Example: Student Table -
1001 PRAKASH
121 CSE
1002 SHYAM
122 AIML
1003 RAJA
123 DS
1004 ANMOL
4NF (FOURTH NORMAL
FORM)
o A relation will be in 4NF , if it is in BCNF and has no Multi-Valued
Dependency.
o In this table only non-primary column depends on one primary key
column.
o For a dependency A → B, if for a single value of A, multiple values of B
exists,Student
Example: then the relation
Table - will be a multi-valued dependency.
STD_ID COURSE HOBBY
1001 CSE DANCING
1002 AIML CRICKET
1003 DS SINGING
AFTER APPLY 4NF -
STD_ID COURSE STD_ID HOBBY
1001 CSE 1001 DANCING
1002 AIML 1002 CRICKET
1003 DS 1003 SINGING
5NF (FIFTH NORMAL FORM)
o The 5NF is also known as PROJECT JOIN Normal Form.
o A relation is in fifth normal form if it is in 4NF and it does not
consist any join dependency.
o 5NF is satisfied when all the tables present in the DBMS are broken
down into as many more tables to ensure there is No Redundancy.
C LOKESH 1
C AMIT 1
JAVA YASH 2
DBMS RAVI 3
AFTER APPLY 5NF : -
C LOKESH LOKESH 1
C 1
C AMIT AMIT 1
JAVA 2
DBMS 3
DBMS RAVI RAVI 3
THANKS TO ALL OF YOU FOR
ATTENTION TO MY
PRESENTATION