题解 | 每个月Top3的周杰伦歌曲

每个月Top3的周杰伦歌曲

https://www.nowcoder.com/practice/4ab6d198ea8447fe9b6a1cad1f671503

select*
from(
select month(fdate) as month,
rank()over(partition by month(fdate) order by count(pl.song_id) desc, si.song_id asc )as ranking,
song_name,
count(pl.song_id) as play_pv
from 
song_info as si 
inner join play_log as pl on si.song_id=pl.song_id 
inner join user_info as ui on pl.user_id=ui.user_id

where year(fdate)=2022
and age between 18 and 25
and singer_name='周杰伦'
group by month(pl.fdate),si.song_name,si.song_id)
as ra
where ranking<=3

全部评论

相关推荐

未知的命运:大佬这都找不到我还找啥啊
点赞 评论 收藏
分享
友友们,我实在是不太明白,校招的话现在大多也是提前实习,然后转正也是需要考核的,考核通过才能转正,那这跟实习转正有什么区别啊
苦闷的仰泳鲈鱼刷了1...:提前实习,是让你提前熟悉业务的,后续是入职后可以减少试用期的(大部分是包入职的);转正实习,要是hc不够或者其他原因,让你正式offer可能都没有,这个风险很大。 ---个人看法和了解到的。
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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