Only this week, get the SQL Complete Track of 9 courses in a special prize of $330 $89!
Introduction
ROWS
RANGE
16. Range – exercise 1
Default window frame
Summary

Instruction

Great! OK, three more exercises before you go.

Exercise

For each stock_change, show id, product_id, quantity, changed date, and the total quantity change from all stock_change for that product.

Stuck? Here's a hint!

Use: RANGE CURRENT ROW.

In OVER() use ORDER BY product_id.