题解 | #每个学校的平均年龄和平均绩点及整体情况#

每个学校的平均年龄和平均绩点及整体情况

https://www.nowcoder.com/practice/d686ac1d09d94441be91475843797d2d

select case when isnull(university) then '总体' else university end as 'university',
    round(avg(age),3) as avg_age,
    round(avg(gpa),3) as avg_gpa
from user_profile
group by university
with rollup
order by university

全部评论

相关推荐

SHC2:关键问题是你这三段实习是三个不同的岗位…你这样子秋招就是只有一段实习的本科生..
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务