On January 21th at 14:15 UTC , progression through exercises will be unavailable for 10 minutes due to a planned maintenance break.
Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
ROWS
RANGE
16. Range – practice 1
Default window frame
Summary

Instruction

Great! OK, three more exercises before we move on.

Exercise

For each StockChange, show Id, ProductId, Quantity, ChangedDate and the total quantity change from all StockChange for that product. Name the column SumQuantity.

Stuck? Here's a hint!

Use: RANGE CURRENT ROW.

In OVER() use ORDER BY ProductId ASC.