select six_sevent_uid.uid, count(distinct substring(ep.submit_time,1,7)) as act_month_total, count(distinct substring(if(year(ep.submit_time)=2021, ep.submit_time,null),1,10)) as act_days_2021, count(distinct substring(if(year(ep.submit_time)=2021 and ep.type=1, ep.submit_time,null),1,10)) as act_d...