Published on

Database Normalization: 1NF

Database normalization is the process of structuring a relational database to reduce redundancy and improve data integrity. It involves dividing large tables into smaller, related tables and defining relationships between them. The goal is to organize data efficiently while preserving its consistency.


🔹 First Normal Form (1NF)

A table is in First Normal Form (1NF) if:

  1. All columns contain only atomic (indivisible) values.
  2. Each record is unique and identifiable by a primary key.
  3. Each field contains only one value per record (no repeating groups or arrays).

✅ Example of a table NOT in 1NF

OrderIDCustomerNameItemsPurchased
1AliceApple, Banana
2BobOrange
3AliceBanana, Carrot, Orange
  • ItemsPurchased contains multiple values → not atomic.

✅ Conversion to 1NF

OrderIDCustomerNameItemPurchased
1AliceApple
1AliceBanana
2BobOrange
3AliceBanana
3AliceCarrot
3AliceOrange
  • ✅ Now each field contains a single value, and the table is in 1NF.