with cte_get_deviation as ( select uid, exam_id, score, if(max_score=min_score,score,(score-min_score)*100/(max_score-min_score)) as max_min # 计算归一化的分数时需要注意最大分数差为0或者只有一个分数的情况,使用原分数 from ( select uid, exam_id, score, min(score) over(partition by exam_id) min_score, max(score) over(partition by exam_i...