题解 | #每类视频近一个月的转发量/率#

每类视频近一个月的转发量/率

https://www.nowcoder.com/practice/a78cf92c11e0421abf93762d25c3bfad

select tag ,sum(if_retweet)retweet_cut ,round(sum(if_retweet)/count(video_id),3)retweet_rate from tb_user_video_log  join tb_video_info using(video_id) where  date(start_time)>(select date_sub(max(date(start_time)),interval 30 day)from tb_user_video_log) group by tag order by retweet_rate desc;

全部评论

相关推荐

牛客66512506...:那个百度acg是不是个小哥啊,老是问些底层问题狠狠为难,然后kpi
哪些公司在招寒假实习?
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务