Interview practice question
Month-over-month growth
Data Engineering · SQL · Intermediate
Calculate month-over-month revenue growth percentage.
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Aggregate revenue per month in a CTE.
- Use LAG to get last month's revenue.
- Growth is (current minus previous) divided by previous.
- Handle division by zero with NULLIF.
- Missing months need a date spine.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.