Topics / 🗄️ SQL, pandas & Data Analysis / 🧱 Level 16: Data Modeling

Quiz · about 2 minutes · free

Why Normalize?

Imagine renaming a player and having to edit 50,000 match rows. Never again.

Normalization stores each fact about the world once. A player's name lives in players; matches only keep player_id.

Name copied into matches: match 1: Kai, 500, match 2: Kai, 900, rename Kai → edit every row. Normalised: players: 1 → Kai, matches: player_id 1, 500, rename once, in players✗ Name copied into matchesmatch 1: Kai, 500match 2: Kai, 900rename Kai → edit every row✓ Normalisedplayers: 1 → Kaimatches: player_id 1, 500rename once, in players
What goes wrong if you copy the player's name into every match row?
  1. Updates become error-prone: rename a player and some rows keep the old name
  2. The database rejects duplicated text
  3. Queries can no longer join the tables
  4. Nothing; it's always faster

Answer it interactively → Free. Sign in with Google to run it. Your code runs on your device.

In this level you'll learn:
More in Level 16: Data Modeling

Share on LinkedIn