题解 | #筛选限定昵称成就值活跃日期的用户#
筛选限定昵称成就值活跃日期的用户
http://www.nowcoder.com/practice/2ed07ff8f67a474d90523b88402e401b
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' )