SELECT
date_format(submit_time,'%Y%m') month,
round(count(DISTINCT concat(uid,date_format(submit_time,'%Y-%m-%d')))/count(DISTINCT uid),2) avg_active_days,
count(DISTINCT uid) mau
FROM exam_record
WHERE submit_time IS NOT NULL AND year(submit_time) = '2021'
GROUP BY date_format(submit_time,'%Y%m');



京公网安备 11010502036488号