题解 | #找出每个学校GPA最低的同学#

找出每个学校GPA最低的同学

https://www.nowcoder.com/practice/90778f5ab7d64d35a40dc1095ff79065

select user_profile.device_id,user_profile.university,user_profile.gpa
from(
    select university,min(gpa) as gpa
    from user_profile
    group by university) as t1 inner join user_profile
	#派生出来的表必须有别名
on t1.university = user_profile.university and user_profile.gpa = t1.gpa
order by t1.university asc

全部评论

相关推荐

03-29 19:11
门头沟学院 Java
wyp_davis:是可以这样的,不过只要交钱就是假的
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务