题解 | #存在绩点大于该校平均绩点时的学生信息#

存在绩点大于该校平均绩点时的学生信息

https://www.nowcoder.com/practice/860fb125c6ac49b080766040f3bd902f

with cte as (
select device_id,university,gpa,
                            avg(gpa)over(partition by university) as avg_gpa
from user_profile )
select device_id,university
from cte 
where gpa>avg_gpa and avg_gpa>3.6
order by device_id desc

全部评论

相关推荐

11-03 18:50
门头沟学院 Java
迷茫的大四🐶:问就是马上到,一周五天,6个月以上,全国可飞
点赞 评论 收藏
分享
回家当保安:复旦✌🏻,佬你的简历感觉挺好的,寒假日常hc比较少。佬可以过完年之后再试试,日常实习hc比较充足
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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