step1:先处理时间 select date_format(start_time,'%Y-%m-%d') dt,a.video_id,if_like,if_retweet,tag from tb_user_video_log a join tb_video_info b on a.video_id=b.video_id step2:再按tag和dt先汇总每个标签,每天的总量 select distinct tag,dt,sum(if_like) over(partition by tag,dt) daily_like_cnt,sum(if_retweet) over...