Interview practice question
Estimating lost sales from stockouts
Data Analyst · SQL for Analytics · Experienced
Operations asks how much revenue was lost due to products being out of stock. How would you approach it with SQL?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Identify stockout periods from inventory data.
- Baseline demand from in-stock periods (same weekday/season).
- Lost units = expected − actual during stockout.
- Multiply by price.
- Caveats: substitution, demand shifts.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.