select ee.uid,ee.start_month ,count(ee.uid) as total_cnt ,count(ee.score) as complete_cnt from (select e.uid ,e.start_time,e.score,u.level ,date_format(start_time,"%Y%m") as start_month ,dense_rank() over(partition by uid order by date_format(start_time,"%Y%m") desc) as rk from exam_record as e lef...