题解 | #查找GPA最高值#

查找GPA最高值

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

select gpa
from  user_profile
where university = '复旦大学'
order by gpa desc   -- order by gpa desc,从大到小排序
limit 0,1 ;-- 取第一个

select max(gpa)  as gpa  -- max()  as  取表列最大值,表列名命名
from  user_profile
where university = '复旦大学';

全部评论

相关推荐

01-14 12:34
门头沟学院 C++
牛马人的牛马人生:太暖心了啊 配环境是真烦
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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