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

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

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

select min(score) from exam_record r, examination_info i where r.exam_id = i.exam_id and i.tag = 'SQL' and r.score >= ( select avg(er.score) from exam_record er join examination_info ei on er.exam_id = ei.exam_id where ei.tag = 'SQL' and er.score is not null ) 这题没有写出来,查看了下题解区才知道自己哪里错了 看来自己还是子查询这块不会,思考问题不是很全面

全部评论

相关推荐

请hr大人把offe...:你这帖子发的左右脑互搏吗兄弟
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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