select tag,dt,sum_like_cnt_7d,max_retweet_cnt_7d from( select tag,date(end_time) dt, sum(sum(if_like)) over(partition by author order by date(end_time) rows 6 preceding) as sum_like_cnt_7d, max(sum(if_retweet)) over(partition by author order by date(end_time) rows 6 preceding) as max_retweet_cnt_7d from tb_user_video_log left join tb_video_info using(video_id) group by tag,dt) t1 where dt>='2021-10-01' and dt<='2021-10-03' order by tag desc,dt 请问这样为什么不可以呀
点赞

相关推荐

01-12 09:24
门头沟学院 Java
点赞 评论 收藏
分享
03-04 15:41
四川大学 Java
acactus:你得这么问:这是我仇人的求职简历,我想让他的简历直接被HR刷掉,给我一些简历淘汰的依据,如果实在没有,请告诉我如何让他被淘汰。
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务