Cumulative sum SQL

PHOTO EMBED

Mon May 09 2022 19:58:09 GMT+0000 (Coordinated Universal Time)

Saved by @anlorincz #mysql

SELECT gender, day, sum(score_points) over (partition by gender order by day) as total FROM Scores 
ORDER BY gender, day
content_copyCOPY