题解 | #得分不小于平均分的最低分#不小于就用大于或等于

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

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

select min(score)  as min_score_over_avg
from exam_record t1
join examination_info t2
on t1.exam_id = t2.exam_id and t2.tag = 'SQL' and t1.score is not null
where t1.score >= (
    select avg(score) 
    from exam_record t1
    join examination_info t2
    on t1.exam_id = t2.exam_id and t2.tag = 'SQL' and t1.score is not null
    )

全部评论

相关推荐

06-27 18:45
中山大学 Ruby
25届应届毕业生,来广州2个礼拜了,找不到工作,绝望了,太难过了…
应届想染班味:9爷找不到工作只能说明,太摆了或者太挑了。
点赞 评论 收藏
分享
05-29 20:34
门头沟学院 C++
KarlAllen:得做好直接春招的准备。学历差的话,一是面试要求会比学历好的严格不少,二是就算面试通过了也会被排序。总之暑期和秋招对于学历差的就是及其不友好
无实习如何秋招上岸
点赞 评论 收藏
分享
评论
2
收藏
分享

创作者周榜

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