题解 | #每个年龄的学生在各学校最大数量#

每个年龄的学生在各学校最大数量

https://www.nowcoder.com/practice/8a2a416d26144c93b67e26581764d8ab

#select age,count(university) count from user_profile group by age,university;
select a.age,max(a.count) max_cnt
from 
(select age,count(university) count from user_profile group by age,university)a
group by a.age order by max_cnt desc;
全部评论

相关推荐

不愿透露姓名的神秘牛友
昨天 17:58
怎么感觉全世界都转码了
蜻蜓队长:其实很多转码的人本身是非常适合学计算机的,只是自己当年没选对专业😂
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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