DATABASE
    intermediate

    Database Normalization

    Software Engineer path · lesson 51 of 99

    Unnormalized Form (UNF)

    Repeating groups in single columns

    UNF1NF2NF3NF

    Problem: Non-Atomic Values

    The "Items" column contains lists (repeating groups), violating the atomicity principle. This leads to difficult queries, inconsistent data entry, and storage waste.

    OrderIDCustomerItems (Product, Price, Category)
    1Alice['Laptop, 1000, Tech', 'Mouse, 50, Tech']
    2Bob['Desk, 300, Furniture']

    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

    Test your knowledge

    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)?

    The short version

    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.

    In more depth

    Database Normalization

    A design process used to organize tables to reduce data redundancy and improve data integrity.

    The Forms

    1NF: Atomic values only (no lists in a single column), and each record must be unique.
    2NF: Must be in 1NF, and all non-key attributes must depend on the ENTIRE primary key (removes partial dependencies in composite keys).
    3NF: Must be in 2NF, and all non-key attributes must depend ONLY on the primary key, not on other non-key attributes (removes transitive dependencies).

    Interview Questions

    Netflix
    Meta
    Google
    Amazon
    Microsoft
    Meta
    Oracle

    Love this visualization?

    Sign up to track your progress, earn achievements, use the AI assistant, and access your personal learning dashboard.

    100% free • No credit card required