select b.tag ,b.dt ,近一周总点赞量 ,一周内最大单天转发量 from ( select a.tag ,a.dt ,sum(a.like) over(partition by a.tag order by a.dt rows 6 preceding ) 近一周总点赞量 ,max(a.retweet) over(partition by a.tag order by a.dt rows 6 preceding ) 一周内最大单天转发量 from ( select tag ,substring(start_time,1,10) dt ,sum(if_like) '...