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

每个创作者每月的涨粉率及截止当前的总粉丝量

http://www.nowcoder.com/practice/d337c95650f640cca29c85201aecff84

select author,month,fans_growth_rate,sum(fans)over(partition by author order by month) as total_fans
from 
(select author,substr(start_time,1,7) as month,round((sum(if_follow=1)-sum(if_follow=2))/count(1),3) as fans_growth_rate,sum(if_follow=1)-sum(if_follow=2) as fans
from tb_user_video_log t join tb_video_info t1 using(video_id)
group by author,month) t
where fans_growth_rate <>0
order by author,total_fans
全部评论

相关推荐

看到这个内容真是闹麻了。。。。。。现在有了AI以后很多人面试都会作弊吗?&nbsp;那对老老实实面试的人岂不是不公平....
程序员牛肉:公平那是对小孩子讲的童话故事,成年人的世界只有能不能接受失败的后果。 你要是能接受面试作弊被发现之后多家公司联合永久拉黑的后果,你就搞。
点赞 评论 收藏
分享
07-02 13:52
门头沟学院 Java
点赞 评论 收藏
分享
06-17 21:57
门头沟学院 Java
白友:噗嗤,我发现有些人事就爱发这些,明明已读不回就行了,就是要恶心人
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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