一开始想的是这么写,奈何一直报语法错误,不知道该怎么查出最大的row_number然后放在where条件中 SELECT tag, difficulty, AVG(score) clip_avg_score FROM ( SELECT tag, difficulty, score, ROW_NUMBER() over (PARTITION BY tagORDER BY score) AS rn FROM examination_info info RIGHT JOIN exam_record record ON info.exam_id = record.exam_id WH...