with users as ( select distinct concat(substring(start_time,1,4),substring(start_time,6,2)) as start_month,uid from exam_record ), first_time as ( select distinct uid,min(start_month)over (partition by uid) as first_month from users ), month_add as ( select start_month,sum(if(sta...