聚合函数
sum( 聚合列)over (partition by 字段名1 order by 字段名2 rows between unbonded(无限) perceding(前面)and current row)as 新字段名
例:
select player_id,event_date,
sum(games_played) over (partition by player_id order by event_date)as games_played_so_far
from Activity