题解 | #查找除复旦大学的用户信息#

查找除复旦大学的用户信息

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

select device_id,gender,age,university
from user_profile 
where id not in 
(select id from user_profile where university='复旦大学')

先将复旦大学的ID查询出来,将复旦大学的ID排除掉就可以了

全部评论

相关推荐

头像
03-20 22:00
重庆大学 Java
适彼乐土:“他们不行再找你” 最后的底牌吗?有点意思
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务