拆解题目意思 统计2021年 where year(er.start_time)=2021 未完成试卷数 sum(case when er.submit_time is null then 1 else 0 end) incomplete_cnt 完成试卷数 sum(case when er.submit_time is not null then 1 else 0 end) complete_cnt detail中是作答过的试卷{日期:tag}集合,日期和tag间用:连接,多元素间用;连接。 知识点:函数group_concat([DISTINCT] 要连接的字段 [Order BY...