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

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

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

select u.device_id,u.university
from user_profile u,(
    select university,avg(gpa) as avg_gpa
    from user_profile
    group by university
    having avg(gpa)>3.6
) as a
where a.avg_gpa<u.gpa and a.university=u.university
order by device_id desc;

全部评论

相关推荐

09-30 15:27
已编辑
成都工业学院 企业文化
Morpheus_:候选人:还需要测验武力值?
投递腾讯等公司10个岗位
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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