从听歌流水中找到18-25岁用户在2022年每个月播放次数top 3的周杰伦的歌曲
区块链毕设网qklbishe.com为您提供问题的解答
从听歌流水中找到18-25岁用户在2022年每个月播放次数top 3的周杰伦的歌曲
这样只能通过两个示例,
排名先后由两者的song_id先后顺序决定
这个条件实现不了,求大佬解答:
select * from ( select month, row_number() over ( partition by month order by play_pv desc,song_id ) as ranking, song_name, play_pv from ( select month (fdate) as month, song_name, count(*) as play_pv from ( select * from play_log join song_info using (song_id) join user_info using (user_id) where age between 18 and 25 and singer_name like '周杰伦' order by song_id ) as a group by month (fdate), song_name ) as b ) as c where ranking <= 3
56:26
以上就是关于问题从听歌流水中找到18-25岁用户在2022年每个月播放次数top 3的周杰伦的歌曲的答案
欢迎关注区块链毕设网-
专业区块链毕业设计成品源码,定制。
区块链NFT链游项目方科学家脚本开发培训