-- where筛选2021年有播放的记录 -- 按月份、作者分组统计 总播放次数 净涨粉数量: is_follow =1 then 1 is_follow =2 then -1 ,于是可以计算涨粉率 -- 按照窗口函数sum()over()可以计算截止当月的粉丝总量 select author,month,round(sum_add/play_times,3) as fans_growth_rate, sum(sum_add)over(partition by author order by month) as total_fans from( select author, date_for...