Normal Forms
Normal Forms
And
Types of Normal Forms
Define Normalization:
Table_Student
Roll_no Name Subject
101 AAA OS,CN
103 BBB JAVA
102 CCC C,C++
(This table is not in first normal form because the “Subject” column
contains multiple values)
After decomposing it into first normal form:
Table_Student
Roll_no Name Subject
101 AAA OS
101 AAA CN
103 BBB JAVA
102 CCC C
102 CCC C++
Rules For Second Normal Form(2Nf):
All non-prime attributes should depend on the table entire primary key not
on part of a primary key(i.e Candidate Key).
Prime attribute – Which is the part of the primary-key ,is known as prime
attribute.
Stud_no Course_no
101 C1 Course_no Course_fee
101 C3 C1 1500
102 C1 C2 2000
103 C1 C3 1500
104 C2 C4 3000
104 C3
105 C4
Rules For Third Normal Form(3Nf):
A table is in 3NF if it is in 2NF each functional dependency x→y at least one of the
following conditions:
i. X is a super key.
X-Non-prime , Y-prime.
Boyce Codd Normal Form(BCNF):
Student_table
Student_id Subject Professor
101 Java Mr.Pravin
101 C++ Mrs.Nancy
102 Scripting lang Mr.Jeyasingh
103 C++ Mrs.Leena
104 Java Mr.Pravin
Professor_table
Student_table
Professor_id Professor Subject
Student_id Professor_id
201 Mr.Pravin Java
101 201
202 Mrs.Nancy C++
102 202
203 Mr.Jeyasingh Scripting
103 203
lang
104 204
204 Mrs.Leena C++
Fourth Normal Form(4NF):