Skip to main content

Database Normalization

Third Normal Form and BCNF

0:00
LearnStep 1/2

3NF and BCNF

Third Normal Form (3NF)

A table is in 3NF if:

  • It is in 2NF
  • No transitive dependencies (non-prime → non-prime)

3NF Violation and Fix

Boyce-Codd Normal Form (BCNF)

A table is in BCNF if:

  • It is in 3NF
  • For every dependency X → Y, X is a super key

3NF allows: A → B where A is prime (part of candidate key)

BCNF requires: A must be a super key for any A → B

BCNF Violation Example

Comparison

Normal FormRequirement
1NFAtomic values, no repeating groups
2NF1NF + no partial dependencies
3NF2NF + no transitive dependencies
BCNFEvery determinant is a super key