WeCodeAcademy

Calculate a running total

Use a window function with SUM() OVER.

Examplesql
Open in editor »

More SQL recipes