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.