题解 | #分组排序练习题#
select university,avg(question_cnt) as avg_question_cnt from user_profile GROUP by university order by avg_question_cnt asc
按照不同大学进行分组 所以使用group by 进行分组 对结果进行排序 使用order by
select university,avg(question_cnt) as avg_question_cnt from user_profile GROUP by university order by avg_question_cnt asc
按照不同大学进行分组 所以使用group by 进行分组 对结果进行排序 使用order by
相关推荐