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

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

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

select min(exam_record.score) as min_score_over_avg

from exam_record, examination_info

where exam_record.exam_id = examination_info.exam_id and tag = 'SQL' and score >=

(select AVG(exam_record.score)

from exam_record, examination_info

where exam_record.exam_id = examination_info.exam_id and tag = 'SQL')

select min(e1.score) as min_score_over_avg from exam_record as e1, examination_info as e2 where e1.exam_id = e2.exam_id and tag = 'SQL' and score >= (select AVG(e1.score) from exam_record as e1, examination_info as e2 where e1.exam_id = e2.exam_id and tag = 'SQL')

全部评论

相关推荐

05-12 17:00
门头沟学院 Java
king122:你的项目描述至少要分点呀,要实习的话,你的描述可以使用什么技术,实现了什么难点,达成了哪些数字指标,这个数字指标尽量是真实的,这样面试应该会多很多,就这样自己包装一下,包装不好可以找我,我有几个大厂最近做过的实习项目也可以包装一下
点赞 评论 收藏
分享
05-09 13:22
门头沟学院 Java
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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