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

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

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

with sql_avg as (
    select avg(score) sql_average
    from exam_record
    left join examination_info using (exam_id)
    where tag = 'SQL'
    and submit_time is not null
)
select min(score) min_score_over_avg
from exam_record
left join examination_info using (exam_id)
where tag = 'SQL'
and score >= (select sql_average from sql_avg)

全部评论

相关推荐

05-05 21:45
已编辑
广州大学 Java
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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