Introduction
ROWS
RANGE
16. Range - exercise 1
Default window frame
Revision

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.

Console

Code editor

Result

TableConsole