#学校的平均发帖情况

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