写过一版错误答案: with temp as ( select b.tag, year(a.start_time) as start_year, sum(if(a.submit_time is not null, 1, 0)) as cnt from exam_record a left join examination_info b on a.exam_id = b.exam_id where month(start_time) < 7 group by 1, 2 ), t1 as ( select *, rank() over ( partition by start_year or...