题解 | #查找GPA最高值#

查找GPA最高值

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

select round(max(gpa),1) #注意保留小数
from user_profile
where university = "复旦大学"

#法2,使用gpa降序取第一条
select gpa
from user_profile
where university = '复旦大学'
order by gpa DESC
limit 1

全部评论

相关推荐

06-04 09:27
门头沟学院 Java
点赞 评论 收藏
分享
07-10 14:08
已编辑
江西农业大学 Java
拒绝无效加班的小学生...:期望3k吗?java这辈子有了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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