Month-over-month change in units sold
For each product, show units sold each month and how that changed compared to the previous month for that same product.
Return product, month_date, units_sold, and change_from_prev, ordered by product then month.
Schema
| product | TEXT |
| month_date | DATE |
| units_sold | INT |
Basic
The example input, expected output, and walkthrough for this question unlock with a Basic plan.
Basic
The reference solution and walkthrough for this question unlock with a Basic plan.
Basic
This is a Basic question
Premium practice questions unlock with a Basic plan. The full solution, expected output, and grading are available to Basic members.
RM 25/mo · cancel anytime