---Advertisement---

DBMS Normalization: 1NF, 2NF, 3NF, BCNF with Examples Great 2025

By Manisha

Updated On:

---Advertisement---
DBMS Normalization

DBMS Normalization: Normalization is a database design process that organizes data efficiently by eliminating redundancy and minimizing insertion, update, and deletion anomalies. It involves breaking larger tables into smaller related tables and linking them using relationships.

Purpose of Normalization:
✅ Eliminates redundant data
✅ Ensures data integrity
✅ Optimizes storage and retrieval
✅ Reduces anomalies in database transactions

The relational model, introduced by Edgar Codd, first introduced First Normal Form (1NF) and later expanded into Second (2NF) and Third (3NF) Normal Forms. Further refinement led to Boyce-Codd Normal Form (BCNF), 4NF, and 5NF.


1NF (First Normal Form)

🔹 Ensures that all columns contain atomic (indivisible) values.
🔹 Each record is unique and identified by a primary key.
🔹 Eliminates repeating groups by structuring data into tables and columns.

Example (Before 1NF – Unnormalized Table):

Customer IDNameMovies Rented
101JohnAvengers, Batman
102AliceSuperman, Spiderman

Issues: “Movies Rented” contains multiple values, violating atomicity.

After 1NF (Normalized Table):

Customer IDNameMovie Rented
101JohnAvengers
101JohnBatman
102AliceSuperman
102AliceSpiderman

2NF (Second Normal Form)

🔹DBMS Normalization: Follows 1NF and removes partial dependencies.
🔹 Each non-key attribute must be fully dependent on the entire primary key.
🔹 Breaks the table into separate tables to remove redundant data.

Example: Consider a table where each movie has a rental price.

Customer IDNameMovie RentedRental Price
101JohnAvengers$5
102AliceSuperman$4

Issue: Rental price depends on Movie Rented, not on Customer ID.

After 2NF (Splitting into Two Tables):

Customers Table:

Customer IDName
101John
102Alice

Movies Table:

Movie RentedRental Price
Avengers$5
Superman$4

3NF (Third Normal Form)

🔹 DBMS Normalization: Follows 2NF and removes transitive dependencies.
🔹 A non-key column should not depend on another non-key column.

Example (Before 3NF – Transitive Dependency Present):

Customer IDNameCityZip Code
101JohnNew York10001
102AliceChicago60601

Issue: Zip Code depends on City, not directly on Customer ID.

After 3NF (Splitting into Two Tables):

Customers Table:

Customer IDNameCity
101JohnNew York
102AliceChicago

City-Zip Table:

CityZip Code
New York10001
Chicago60601

🔹 DBMS Normalization: A stricter version of 3NF that removes anomalies that 3NF does not handle.
🔹 Every determinant in a table must be a candidate key.

Example (Before BCNF – Violation Exists):

Professor IDSubjectDepartment
1MathScience
2PhysicsScience

Issue: Subject → Department dependency violates BCNF rules.

After BCNF (Splitting into Two Tables):

Professors Table:

Professor IDSubject
1Math
2Physics

Subjects Table:

SubjectDepartment
MathScience
PhysicsScience

  1. DBMS Normalization: 4NF (Fourth Normal Form): Removes multi-valued dependencies to ensure that an entity only contains independent multi-valued facts.
  2. 5NF (Fifth Normal Form / PJNF): Deals with complex join dependencies and ensures data reconstruction without loss.
  3. 6NF (Sixth Normal Form): Theoretical; used for temporal databases to handle time-dependent data changes.

✅ DBMS Normalization: 1NF – Eliminates repeating groups (atomicity).
2NF – Eliminates partial dependency (full dependency on the primary key).
3NF – Eliminates transitive dependency.
BCNF – Ensures every determinant is a candidate key.
4NF & 5NF – Handle advanced anomalies and join dependencies.

Normalization optimizes database performance, ensures consistency, and minimizes redundancy, making it an essential part of database design!

DATABASE DESGIN IN DBMS Tutorial

Download My SQL

Leave a Comment

Index