-- 计算出按照试卷类型算出平均分数 with t1 as ( select emp_id, exam_id, score, avg(score) over(partition by exam_id) as avg_score, timestampdiff(second , start_time , submit_time) as all_time from exam_record ), -- 计算出平均用时 t2 as ( select emp_id, exam_id, score, avg_score, all_time, avg(all_time) over(partition by e...