TECHNOLOGIESTieInn Technologies

Normalisation

Data Modelling · 11 questions

Short notes

Key idea

Normalisation splits data into tables so each fact is stored once. That prevents update, insert and delete anomalies in systems that change data all day.

Syntax

  • 1NF: one value per cell, no repeating groups.
  • 2NF: 1NF, and every non-key column depends on the whole key (matters with composite keys).
  • 3NF: 2NF, and no non-key column depends on another non-key column (no transitive dependency).
  • Rule of thumb: "the key, the whole key, and nothing but the key".
  • Denormalising deliberately repeats data for faster reads, as warehouses do.

Example

orders(order_id, customer_id, customer_city, amount): city depends on the customer, not the order. When a customer moves, every one of their orders must be updated, or the data disagrees. 3NF moves city into customers.

Traps

  • Over-normalising a warehouse forces many joins for every report.
  • 2NF problems only appear with composite keys.
  • Derived values (total = price × qty) stored next to their inputs can drift out of sync.
  • Normal forms are about dependencies, not just splitting tables for the sake of it.

Want the full lesson with step-by-step examples, a project and a certificate? Data Modelling course, ₹120 →

Questions

5 free questions
5 questions

    Normalisation

  1. Question 1easy

    A customers table has a column phones with values like "98400 11111, 98400 22222". Which rule does this break?

  2. Normalisation

  3. Question 2medium

    A table keyed by (order_id, product_id) has columns quantity and product_name. Which column breaks 2NF?

  4. Normalisation

  5. Question 3medium

    customers has customer_id (key), pincode, and city, where city is determined by pincode. Which form does this break?

  6. Normalisation

  7. Question 4medium

    A product's name is stored on every order line. The product is renamed. What can go wrong?

  8. Normalisation

  9. Question 5hard

    order_items stores unit_price even though products has a price. Is that a normalisation mistake?

6 more questions on this topic, with hints, and tests

Sign up free for 21 days of every question and test.