select a.sno from (select * from sqltest where subject = '语文' and score >= 60) as a inner join (select * from sqltest where subject = '数学' and score <60) as b on a.sno = b.sno select a.sno from (select sno, sum(case subject when '语文' then score else null end) as chinese_score, sum(case subject when '数学' then score else null end) as match_score from sqltest group by sno) as a where a.chinese_score >= 60 and a.match_score < 60
点赞 评论

相关推荐

Twilight_m...:还是不够贴近现实,中关村那块60平房子200万怎么可能拿的下来,交个首付还差不多
点赞 评论 收藏
分享
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务