Paths Subjects Questions Quizzes Pricing Search
Intermediate Open Pro

Normalising an Order System That Keeps Breaking Reports

An e-commerce team stores order_items with only product_id, qty, and no price snapshot — the current price is looked up from products at read time. Finance complains that historical revenue reports change retroactively whenever a product's price is edited.

  1. Diagnose the modelling mistake.
  2. Propose the fix, and name which of normalisation/denormalisation it represents.
  3. What new problem does the fix introduce, and how do you handle it?

Share this question

← Back to SQL vs NoSQL & Data Modeling for Scale practice

We use cookies for product analytics to improve OmniAtlas. See our Privacy Policy.