select uid,nick_name,achievement from user_info where nick_name like '牛客%号' and achievement >= 1200 and achievement <= 2500 and uid in ( select uid from ( select uid,date_format(start_time,'%Y%m') as month from exam_record union select uid,date_format(submit_time,'%Y%m') as month from practice_record ) t group by uid having max(month) = '202109' )