题解 | #查找GPA最高值#
查找GPA最高值
https://www.nowcoder.com/practice/4e22fc5dbd16414fb2c7683557a84a4f
--最简单
select max(gpa)
from user_profile
where university = '复旦大学'
--考虑严谨一些,查找结果保留一位小数
select round(max(gpa),1)
from user_profile
where university = '复旦大学'
--通过gpa倒序,然后用limit取第一条
select gpa
from user_profile
where university = '复旦大学'
order by gpa desc
limit 1