方法1:用子循环,因为device与gpa对应,所以不能直接用聚合函数,考虑使用子循环.让学校与min(gpa)一一对应 select device_id,university,gpa from user_profile where (gpa,university) in(select min(gpa),university from user_profile group by university) order by university 方法2:使用窗口函数,先对每个学校的成绩进行排序,再选出最低的,注意sql中的窗口函数不能直接命名为rank s...