题解 | 找出每个学校GPA最低的同学
select device_id,university,gpa from (select *, row_number() over(partition by university order by gpa asc) rk from user_profile) as a where rk = 1
select device_id,university,gpa from (select *, row_number() over(partition by university order by gpa asc) rk from user_profile) as a where rk = 1
相关推荐