select uid,act_month_total,if(act_days_2021 is null,0,act_days_2021) act_days_2021,if(act_days_2021_exam is null,0,act_days_2021_exam),if(act_days_2021_question is null,0,act_days_2021_question) from ( select uid,sum(if(da is not null,1,0)) act_month_total from ( select uid,date_format(submit_time,'...