题解 | #分组排序练习题#
分组排序练习题
http://www.nowcoder.com/practice/e00bbac732cb4b6bbc62a52b930cb15e
#学校的平均发帖情况
select avg(question_cnt) from user_profile group by university
得出结果: select university,avg(question_cnt) as avg_question_cnt from user_profile group by university order by avg_question_cnt ASC asc是默认的也可不写,容易分不清楚的是用having 还是用order by

阿里云成长空间 747人发布