问题分解: 限定条件:无; 不同大学:按学校分组group by university 平均发帖数:avg(question_cnt) 升序排序:order by avg_question_cnt 细节问题: 表头重命名:as 完整代码:
select university, avg(question_cnt) as avg_question_cnt from user_profile group by university order by avg_question_cnt asc
问题分解: 限定条件:无; 不同大学:按学校分组group by university 平均发帖数:avg(question_cnt) 升序排序:order by avg_question_cnt 细节问题: 表头重命名:as 完整代码:
select university, avg(question_cnt) as avg_question_cnt from user_profile group by university order by avg_question_cnt asc