Loading lesson…
Level 1 · Apprentice0 XP
Normalise first, denormalise on purpose, and model from access patterns.
Step 1 / 6
ProblemA users table grew to 90 columns, half of them NULL: billing fields, preferences, three addresses and flags from old features.
← → step
Before this: Window functions and CTEs
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Model subscriptions for a SaaS: plans, prices that change over time, subscriptions with start and end, invoices that keep the price at billing time, and soft-cancelled subscriptions. Explain each denormalisation you make.