题解 | #分组排序练习题#
分组排序练习题
https://www.nowcoder.com/practice/e00bbac732cb4b6bbc62a52b930cb15e
select university,avg(question_cnt) as avg_question_cnt from user_profile group by university order by avg_question_cnt
一次通关,因为题目中的北京大学不止一个,必须用group by 分组之后接一个 order by