Module 54: Normalisation

Lesson 3 of 5 · 15–25 minutes

Second normal form

🏠The everyday picture

An enrolment register that also writes the course's full syllabus on every line. The syllabus depends only on the course, not on which student enrolled, so it belongs in the course register.

📘What it really is

🖱️Try it

In your 1NF orders design, check the items table: which columns depend only on the product (name, current price, category)? Move them to a products table, keeping only what belongs to the order line (quantity, price charged).

✅Quick check

In order_items (order_id, product_id, quantity, product_name), which column breaks 2NF?

Show the answer

product_name: it depends only on product_id, part of the key.

Is the price charged on an order line a 2NF violation?

Show the answer

No. It's a fact about that sale (the whole key), different from the product's current price.

← PreviousFirst normal form
ProLearners Assist