1.select uid, count(score)exam_complete_cnt 2.from(select uid, submit_time,start_time,score, dense_rank()over(partition by uid order by date_format(start_time,'%Y-%m')desc ) as mon_rnk 3.from exam_record) t 4.where t.mon_rnk<=3 5.group by uid 6.having count(star...