select * from( select tag,date(start_time) as dt, sum(sum(if_like)) over(partition by tag order by date(start_time) rows 6 preceding) as total_like, max(sum(if_retweet)) over(partition by tag order by date(start_time) rows 6 preceding) as day_retweet from tb_user_video_log t1 left join tb_video_in...