## 使用row_number()窗口函数获取排名(不重复,不跳过,保证只减去第一个最大值和最小值) SELECT tag, difficulty, ROUND(AVG(score),1) AS clip_avg_score FROM( SELECT er.exam_id, score, tag, difficulty, ROW_NUMBER() OVER (PARTITION BY tag,difficulty ORDER BY score DESC) AS high_rank, ROW_NUMBE...