大学分组gpa升序后取每组之内根据排序字段的第一行值
select t.device_id,t.university,t.gpa from (select *,row_number() over(partition by a.university order by a.gpa) rownum from user_profile a) t where t.rownum=1
select t.device_id,t.university,t.gpa from (select *,row_number() over(partition by a.university order by a.gpa) rownum from user_profile a) t where t.rownum=1