SELECT uid, count(incomplete) as incomplete_cnt, count(complete) as complete_cnt, group_concat(distinct concat_ws(':', date(start_time), tag) SEPARATOR ';') as detail from ( SELECT uid, tag, start_time, if(submit_time is null, 1, null) as incomplete, if(submi...