# 先查一个小表 with t as (SELECT ei.tag, ei.difficulty, er.score FROM examination_info ei, exam_record er where ei.tag = 'SQL' and ei.difficulty = 'hard' and ei.exam_id = er.exam_id and er.score is not null) select tag, difficulty, round(avg(score),1) # round(avg(score),1) 为保留一位小数 from t # 排除掉最大和最小值 w...