题解 | #查找GPA最高值#
查找GPA最高值
http://www.nowcoder.com/practice/4e22fc5dbd16414fb2c7683557a84a4f
- -- 方法一
select gpa from user_profile where university = '复旦大学' order by gpa DESC limit 0,1
- -- 方法二
SELECT DISTINCT gpa from ( select gpa, dense_rank() over (order by gpa desc) rk from user_profile) T where rk = 1
- -- 方法三
select distinct max(gpa) gpa from user_profile where university = '复旦大学'
查看7道真题和解析
SHEIN希音公司福利 280人发布