IntermediateAbout 20 min

    Database Normalization

    Read the full article on Substack

    6 min read.

    Learn how to split flat, denormalized tables into 1NF, 2NF, and 3NF to eliminate data redundancy.

    Think of it this way: Normalization is like organizing a messy closet. Instead of having shoes, shirts, and pants piled in every drawer (Flat Table), you designate specific drawers for specific items (Separate Tables). If a shirt changes size, you only update it in one place.

    Orders
    OrderIDCustomerCityItems
    1AliceToronto
    Laptop 1000 Tech
    Mouse 50 Tech
    2BobOttawa
    Desk 300 Furniture
    3AliceToronto
    Mouse 50 Tech

    Unnormalized. The Items column holds a list. You cannot query or update one item on its own.

    Check your understanding

    Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.

    Which normal form does it break?

    Sort

    Sort each design flaw by the normal form it violates.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    Breaks 1NF

    Drop items here

    Breaks 2NF

    Drop items here

    Breaks 3NF

    Drop items here
    6 pieces left to place

    Quiz

    20 questions
    Question 1 of 20
    Score: 0

    Which Normal Form ensures that there are no "transitive dependencies" (e.g., A depends on Primary Key B, but C depends on A)?

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going