Description

Normalization is a database design technique that organizes tables to reduce redundancy and dependency of data. It divides larger tables into smaller ones and links them using relationships. Its purpose is to eliminate redundant (useless) data and ensure data is stored logically.

Benefits of Normalization

  • Improved data integrity (no redundant data)
  • Smaller databases
  • Better performance
  • Fewer indexes
  • Less management
  • Prevents data modification anomalies (insert, update, delete)

Hierarchy of Normal Forms

1NF is the weakest, 2NF is stronger than 1NF, 3NF is stronger than 2NF, and BCNF is the strongest. Every relation in BCNF is in 3NF; every relation in 3NF is in 2NF; every relation in 2NF is in 1NF.

Running Example

A learner table where one person holds several certifications:

NameBirth_dateCertificationsCert 1Cert 2Cert 3
John1990/02/12PBI, MCSA, MTAPBIMCSAMTA
Kelly1988/10/01ExcelExcelNULLNULL
Bryan1991/01/15PBI, ExcelPBIExcelNULL
Rob1986/08/07PBIPBINULLNULL

Steps

Step 1: First Normal Form (1NF)

A relation is in 1NF if all values are single-valued and atomic. Remove repeating groups and repeating columns, and add a primary key.

Result: one row per learner–certification pair (key = Learner_ID + Certification_ID).

Learner_IDNameBirth_dateCertification_IDCertification_nameVendor_nameDate_acquired
1John1990/02/121PBIMicrosoft2017/01/08
1John1990/02/122MCSAMicrosoft2020/04/16
1John1990/02/123MTAMicrosoft2021/05/12
2Kelly1988/10/014ExcelMicrosoft2018/06/03
3Bryan1991/01/151PBIMicrosoft2019/12/11
3Bryan1991/01/154ExcelMicrosoft2020/04/07
4Rob1986/08/071PBIMicrosoft2022/01/15

An outer join reproduces the original information without loss.

Step 2: Second Normal Form (2NF)

  • The relation is in 1NF, and
  • every non-key attribute is fully functionally dependent on the whole primary key (no partial dependencies).
  • Create separate tables for sets of values that apply to multiple records and relate them with a foreign key.
  • If the primary key is a single column, the table is already in 2NF.

Result: three tables.

  • Learner(Learner_ID, Name, Birth_date)
  • Certification(Certification_ID, Certification_name, Vendor_name)
  • Learner_Certification(Learner_ID, Certification_ID, Date_acquired)

Step 3: Third Normal Form (3NF)

  • The relation satisfies 2NF, and
  • it has no transitive dependencies (a non-key attribute depending on another non-key attribute).

Here Vendor_name depends on the vendor, not on the certification, so it is moved to its own table:

  • Vendor(Vendor_ID, Vendor_name)
  • Certification(Certification_ID, Certification_name, Vendor_ID)

Final 3NF schema: Learner, Certification, Vendor, Learner_Certification.

Step 4: Boyce-Codd Normal Form (BCNF)

The strongest of the four forms: every determinant (an attribute that determines others) must be a candidate key. Any relation in BCNF is also in 3NF.

Summary Table

Normal FormRequirement
1NFAtomic values, no repeating groups, has a primary key
2NF1NF + no partial dependency on part of a composite key
3NF2NF + no transitive dependency among non-key attributes
BCNFEvery determinant is a candidate key

Conclusion

Normalization removes redundancy and anomalies by decomposing tables without losing information; related tables are reconnected using primary and foreign keys.