Normalization
Normalization
Normalization?
Normalization is the process
to eliminate data
redundancy and enhance
data integrity in the table.
Read
more
Created by
Pranjal Meshram
1.
2.
3.
Created by Slide
Pranjal Meshram
Why do we need
Normalization?
A large database defined as a single table can lead
to several redundancies in data:
Data Duplication
Inefficient Disk Space Utilization
Updating and Maintenance Challenges:
as it requires searching through numerous
records within the table.
Increased Risk of Errors and
Inconsistencies: as multiple instances of the
same data must be updated consistently.
Created by Slide
Pranjal Meshram
Types of Normal
Form
1. First Normal Form (1NF)
2. Second Normal Form (2NF)
3. Third Normal Form (3NF)
4. Boyce-Codd Normal Form
(BCNF)
5. Fourth Normal Form (4NF)
6. Fifth Normal Form (5NF)
Created by
Pranjal Meshram
First Normal
Form (1NF)
A table is in 1NF if:
All columns contain only atomic (indivisible) values.
Each column contains values of a single type.
Example:
CustomerID CustomerName Orders
2 Bob Order3
1NF Conversion
CustomerID CustomerName Order
1 Alice Order1
1 Alice Order2
Created by 102 2
Pranjal Meshram
Fourth Normal
Form (4NF)
A table is in 4NF if:
It is in BCNF.
It has no multi-valued dependencies (a scenario where
one attribute determines a set of values).
1 Java A 1 Java 1 A
1 SQL A 1 SQL 1 B
1 Java B 2 Python
2 C
1 SQL B 2 Java
Created by 2 20
Pranjal Meshram
Candidate Key
Super Key
Created by
Pranjal Meshram