Skip to content
Guest
PostgreSQL · Course Syllabus Show lessons
Schema Design · 9 min read · Intermediate

Normalization (1NF, 2NF, 3NF) & Denormalization

Eliminate update anomalies with First, Second, and Third Normal Form, and know when controlled denormalization makes sense.

What you'll learn

  • Eliminate repeating comma-separated columns (1NF)
  • Remove partial and transitive dependencies (2NF/3NF)
  • Recognize valid cases for read-optimized denormalization

Overview

Eliminate update anomalies with First, Second, and Third Normal Form, and know when controlled denormalization makes sense.

Strong database design pays dividends for years: clean constraints catch bugs before application code does, and well-chosen indexes keep response times predictable as tables grow from thousands to millions of rows.

Try It Live (Interactive SQL Sandbox)

SQLNormalization (1NF, 2NF, 3NF) & Denormalization
Query Result (In-Browser SQLite)

Click Run SQL to execute this query against a live in-browser SQLite database.

Key Takeaways

  • Eliminate repeating comma-separated columns (1NF)
  • Remove partial and transitive dependencies (2NF/3NF)
  • Recognize valid cases for read-optimized denormalization

Quick Check

Check Your Understanding

Score: 0 / 1

1. Why is storing `price_at_purchase` on `order_items` (even though `products` has `unit_price`) good design?

Study Workspace

Finished this lesson?

Your progress is saved locally in your browser, no account needed.

Search courses, lessons, and references

Type to search across all courses, lessons, and quick references.

Press Esc to close Powered by Pagefind