题解 | #网易云音乐推荐(网易校招笔试真题)#

网易云音乐推荐(网易校招笔试真题)

http://www.nowcoder.com/practice/048ed413ac0e4cf4a774b906fc87e0e7

select distinct(m.music_name)
from music_likes as ml
left join music as m
on ml.music_id=m.id
where ml.user_id in 
(
 SELECT distinct(follower_id)
 from follow 
 where user_id=1
)
and ml.music_id not in
(
 select distinct(music_id)
 from music_likes
 where user_id=1
)
order by m.id;
全部评论

相关推荐

01-15 19:59
中山大学 C++
牛客60887332...:你这是人写出来的? 本科标到硕士后面 留那么多空给 hr 填?
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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