Skip to content

database normalization

Database normalization is the process of structuring a relational database’s tables so that each fact is stored in exactly one place, which reduces redundancy and keeps the data consistent.

Edgar F. Codd introduced the idea in 1970 as part of the relational model. A table that repeats the same fact across many rows invites three kinds of anomalies. An update anomaly leaves copies out of sync when only some of them change. An insertion anomaly blocks recording a fact until unrelated data exists. A deletion anomaly erases one fact as a side effect of removing another.

Try the same three changes on a single wide table and on its normalized version to see which schema keeps the data consistent:

Interactive diagram — enable JavaScript to view.

Normalization fixes these problems by splitting a table into smaller ones and linking them through keys. Each step is defined by a normal form, a rule about which columns may depend on which. The rules rest on functional dependencies, where the value of one column determines the value of another. The forms build on one another:

  • First normal form (1NF): Every field holds a single value, never a list or nested record.
  • Second normal form (2NF): Every non-key column depends on the whole primary key rather than on one piece of a composite key.
  • Third normal form (3NF): Non-key columns depend directly on the key and never on another non-key column.
  • Boyce-Codd normal form (BCNF): A stricter 3NF in which any column set that determines another column must contain a candidate key.

Codd defined 2NF and 3NF in 1971, and he and Raymond F. Boyce defined BCNF in 1974. Ronald Fagin later added fourth and fifth normal forms, which matter far less in everyday schema design.

A normalized schema spreads related data across tables that a SQL JOIN puts back together at query time. Read-heavy systems such as analytics warehouses sometimes denormalize on purpose, accepting duplicated data in exchange for fewer joins and faster reads.

Data Management With Python, SQLite, and SQLAlchemy

Tutorial

Data Management With Python, SQLite, and SQLAlchemy

Store and retrieve data with Python, SQLite, and SQLAlchemy. You'll compare flat files with SQL and work with your data as Python objects.

intermediate databases web-dev

For additional information on related topics, take a look at the following resources:

Have a question about this? Mentor AI can show you examples, compare related terms, and point you to tutorials.


By Martin Breuss • Updated Nov. 19, 2026