select distinct if(q.max_value>2,q.uid,qq.uid) as uid, if(q.max_value>2,q.incomplete_cnt,qq.incomplete_cnt) as incomplete_cnt, if(q.max_value>2,if(q.incomplete_rate is null, 0, q.incomplete_rate),if(qq.incomplete_rate is null,0,qq.incomplete_rate)) as incomplete_rate from ( select ui....