• WHAT IS NORMALIZATION?
www.edureka.co
• 1ST NORMAL FORM (1NF)
• 2ND NORMAL FORM (2NF)
• 3RD NORMAL FORM (3NF)
• BOYCE-CODD NORMAL FORM (BCNF)
www.edureka.co
WHAT IS NORMALIZATION?
www.edureka.co
Processes of reducing the
redundancy of Data
Improves the Data Integrity
DATA ANOMALIES
www.edureka.co
INSERTION UPDATION DELETION
TYPES OF NORMAL FORM
www.edureka.co
FIRST NORMAL FORM
SECOND NORMAL FORM
THIRD NORMAL FORM
BOYCE-CODD NORMAL FORM
1NF
2NF
3NF
BCNF
st
www.edureka.co
1ST NORMAL
FORM
www.edureka.co
NORMALIZATION
Removes repeating groups from the table
Create a separate table for each set of
related data
Identify each set of related data with a
primary key
1 NF EXAMPLE
www.edureka.co
1 NF EXAMPLE
www.edureka.co
www.edureka.co
2nd NORMAL
FORM
www.edureka.co
NORMALIZATION
It has to be in 1st Normal Form
Table also should not contain partial
dependency
2 NF EXAMPLE
www.edureka.co
2 NF EXAMPLE
www.edureka.co
www.edureka.co
3rd NORMAL
FORM
www.edureka.co
NORMALIZATION
It has to be in 2nd Normal Form
There should be no transitive dependency
for non-prime attributes
3 NF EXAMPLE
www.edureka.co
3 NF EXAMPLE
www.edureka.co
3 NF EXAMPLE
www.edureka.co
3 NF EXAMPLE
www.edureka.co
3 NF EXAMPLE
www.edureka.co
Boyce Codd NORMAL FORM (BCNF)
www.edureka.co
BC NORMAL
FORM
www.edureka.co
NORMALIZATION
It has to be in 3rd Normal Form
Higher version 3NF and was developed by
Raymond F. Boyce and Edgar F. Codd
Every functional dependency A → B, then
A has to be the Super Key of that
particular table
BCNF EXAMPLE
www.edureka.co
Student ID
1DT15ENG01
1DT15ENG02
1DT15ENG02
1DT15ENG03
1DT15ENG04
Subject
SQL
JAVA
C++
JAVA
DBMS
Professor
Prof. Mishra
Prof. Anand
Prof. Kanthi
Prof. Anand
Prof. Lokesh
BCNF EXAMPLE
www.edureka.co
Student ID
1DT15ENG01
1DT15ENG02
1DT15ENG02
1DT15ENG03
1DT15ENG04
Subject
SQL
JAVA
C++
JAVA
DBMS
Professor
Prof. Mishra
Prof. Anand
Prof. Kanthi
Prof. Anand
Prof. Lokesh
BCNF EXAMPLE
www.edureka.co
Student ID
1DT15ENG01
1DT15ENG02
1DT15ENG02
1DT15ENG03
1DT15ENG04
Subject
SQL
JAVA
C++
JAVA
DBMS
Professor
Prof. Mishra
Prof. Anand
Prof. Kanthi
Prof. Anand
Prof. Lokesh
Professor ID
1DTPF01
1DTPF02
1DTPF03
1DTPF02
1DTPF04
Professor ID
1DTPF01
1DTPF02
1DTPF03
1DTPF02
1DTPF04
www.edureka.co

Normalization in SQL | Edureka