sum cummulative value in SQL

PHOTO EMBED

Mon Mar 21 2022 10:36:29 GMT+0000 (Coordinated Universal Time)

Saved by @Bambibo9799

select
year, medals,
  sum(medals) over (order by year asc) as medal_rt
from medal_table
content_copyCOPY