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

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

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-25 09:33
厦门大学 Java
球球别拷打俺了:现在日常估计没啥hc了,等到八月多估计就慢慢有了。双九✌🏻不用焦虑的
投递快手等公司10个岗位
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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