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

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

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

select score from exam_record
where score>=
(
select 
    avg(score)
from 
    exam_record e1
join 
    examination_info e2 
on 
    e1.exam_id=e2.exam_id
and 
    e2.tag='SQL'
group by 
    e2.tag
)
and exam_id in(select exam_id from examination_info where tag='SQL')
order by score
limit 1;

全部评论

相关推荐

06-07 19:59
门头沟学院 C++
点赞 评论 收藏
分享
兄弟们你们进大厂靠的是什么项目啊
DOTPHTP:课设改。其实项目什么的如果不是实习里面的生产项目的话,建议✍️那种自己想要做的。突出个人自驱力,而不是为了找工作不得不随波逐流这种
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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