SELECT a.device_id, a.university, a.gpa FROM user_profile a, ( SELECT device_id, university, ROW_NUMBER() OVER(PARTITION BY university ORDER BY gpa) rak, gpa FROM user_profile ) b WHERE a.device_id = b.device_id AND b.rak = 1 ORDER BY a.university 易错点:在第一行的选择上没有指定字段的来源表,一直报错原先是思路是直接用groupby,但是一直报错,因...