AITeky Learn

AiTeky Original Interactive Learning & Practice Intermediate

Database design: one fact in one place, reporting copies and the address stored four times

See how repeating a fact in many rows makes updates miss some, why a reporting copy drifts from the source, and how storing each fact once removes a whole class of wrong data.

When the same fact is stored in several places, someone will eventually change one place and forget the others. Good design stores each fact once and refers to it. Copies for speed are fine, but you must know how stale they can get.

This course models tables as lists in small Python programs you can run in your browser. Python stands in for SQL: the data is made up, and the logic of updates and joins is the same. Check your database's documentation for constraints, foreign keys and views.

  • Learn lessons explain one idea at a time and let you run it.
  • Industry ready lessons decide and justify, and end with interview questions.

No database design experience is assumed. Basic Python helps.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 20 min Free sample 🔒 AiTeky Pass Update one row, miss the rest Repeat a customer's city in every order, update it in one place only, and see two cities for one customer; then store it once and update it once.
  2. 02 20 min 🔒 AiTeky Pass The reporting copy Build a flattened copy of the data for fast reports, see how it goes stale when the source changes, and measure the drift so you know how much to trust it.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 03 30 min 🔒 AiTeky Pass On the job: the address stored in four tables A customer's address lives in four tables and screens update only some. Count the stale copies, compare four fixes by effort and risk, choose, and write the note.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in