题解 | #分组排序练习题#

这个是把学校按照university分组之后,再对其中一个集合好的字段进行排序。

所以使用order by关键词来对avg_question_cnt进行排序。

select university, avg(question_cnt) as avg_question_cnt 
from user_profile group by university
order by avg_question_cnt asc;
全部评论

相关推荐

迷茫的大四🐶:💐孝子启动失败,改为启动咏鹅
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务