liveBook · Manning

Normalization

As explained in Microsoft Azure in Action

Normalization is the organization of relational data into related structures to minimize redundancy and maintain each fact in one place.

Normalization organizes relational data into related tables so each fact lives in one place. It reduces duplicate data, helps maintain consistency, and makes updates less error-prone. section 10.2.1

An online store

Keep customer details in a Customers table and store only customer_id in Orders. When a customer changes their name, update Customers once rather than editing every order. The relationship does the joining work; thankfully, nobody has to chase duplicate names around the database. section 10.2.1

Normalization trades some query simplicity for cleaner data:

  • Reduces storage waste by avoiding repeated values. section 10.2.1
  • Improves data integrity because updates happen in one isolated location. section 10.2.1
  • Can require more joins and create more complex or slower read queries. section 10.2.1
  • Contrast denormalization when faster queries justify intentionally duplicated data. section 10.2.1
Figure 10.1 The Customers and Orders tables are related using the ID in the Customers table.

Use the Customers-and-Orders diagram to see how an identifier connects separate tables without copying customer details into every order. section 10.2.1

How Microsoft Azure in Action covers it

How deep it goes
Explains table decomposition, relationships, and trade-offs but stops short of named normal forms or detailed implementation rules.
Examples
Uses Customers and Orders for normalized storage, then contrasts Posts and Comments with a denormalized comment count.
What it assumes
Assumes basic relational-database ideas such as tables, records, identifiers, relationships, and queries.
What you can do after
Evaluate relational schema choices by weighing integrity, storage, query, write, maintenance, scalability, and flexibility trade-offs.
How it connects
Links normalization to relational databases, database schemas, joins, data integrity, and denormalization.

Also explained in

Compare how 21 books explain normalization →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Microsoft Azure in Action. The section links point to the parts of the book it draws on.