题解 | #得分不小于平均分的最低分#

得分不小于平均分的最低分

https://www.nowcoder.com/practice/3de23f1204694e74b7deef08922805b2

select
    min(t3.score) min_score_over_avg
from
    (select
        t1.score,
        avg(t1.score) over(partition by t2.tag) avg_score
    from 
        exam_record t1
    left join
        examination_info t2
    on
        t1.exam_id = t2.exam_id
    where
        t2.tag = 'SQL'
        and t1.score is not null) t3
where
    t3.score >= t3.avg_score

全部评论

相关推荐

04-28 10:14
门头沟学院 Java
点赞 评论 收藏
分享
04-15 09:59
门头沟学院 C++
yy_11:小公司人家没必要泄密,大公司都是本地部署了
你想吐槽公司的哪些规定
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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