题解 | #找出每个学校GPA最低的同学#
找出每个学校GPA最低的同学
https://www.nowcoder.com/practice/90778f5ab7d64d35a40dc1095ff79065
select t1.device_id,t1.university,t1.gpa from (select device_id,university,gpa,lead(gpa,1,999) over(partition by university order by gpa desc) as gpa1 from user_profile)as t1 where t1.gpa1=999
开窗+分区+排序,秒,下一个!