select ei.tag, ei.difficulty, round((sum(er.score) - max(er.score) - min(er.score)) / (count(er.score) - 2),1) from exam_record er left join examination_info ei on er.exam_id=ei.exam_id where tag='SQL' and difficulty='hard' group by ei.tag,ei.difficulty 需要分组的 分组也能通过 但是应该是数据只有一条sql的要是有两条就报错额
点赞

相关推荐

03-31 18:02
门头沟学院 Java
白日梦想家_等打包版:不要的哦佛给我
点赞 评论 收藏
分享
点赞 评论 收藏
分享
牛客网
牛客企业服务