Normalize relational schemas from 1NF to BCNF

8 steps · about 2 h 25 min · Beginner

  1. See why normalization prevents update anomalies (reference, Wikipedia, 20 min)

    Frames insertion, update and deletion anomalies as consequences of storing facts in the wrong table.

  2. Spot insertion, update and deletion anomalies (article, GeeksforGeeks, 15 min)

    Uses concrete unnormalized rows to show how duplicate facts drift out of sync.

  3. Determine candidate keys with functional dependencies (article, GeeksforGeeks, 25 min)

    Teaches attribute closure so you can prove which columns uniquely determine the rest of a row.

  4. Enforce atomic columns and row identity in 1NF (reference, Wikipedia, 15 min)

    Eliminates repeating groups and comma-packed cells so every attribute holds a single value.

  5. Remove partial dependencies on composite keys in 2NF (reference, Wikipedia, 15 min)

    Splits attributes that depend on only part of a composite primary key into their own entity table.

  6. Eliminate transitive dependencies in 3NF (reference, Wikipedia, 15 min)

    Moves attributes that depend on non-key columns into separate lookup or reference tables.

  7. Close remaining determinant gaps with BCNF (article, GeeksforGeeks, 20 min)

    Handles overlapping candidate keys where every determinant must be a superkey.

  8. Enforce normalized links with foreign keys (reference, SQLite, 20 min)

    Shows how FOREIGN KEY constraints and ON DELETE rules keep decomposed tables consistent in SQL.