mahir_data
hardSony · windowPro

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

monthly_sales
productTEXT
month_dateDATE
units_soldINT

Pro

The example input, expected output, and walkthrough for this question unlock with a Pro plan.

Pro

This is a Pro question

Premium practice questions unlock with a Pro plan. The full solution, expected output, and grading are available to Pro members.

See Pro plans