SELECT date_format (A.SUBMIT_TIME, '%Y%m') as submit_month, COUNT(1) as month_q_cnt, ROUND(COUNT(1) / DAY_M, 3) as avg_day_q_cnt FROM ( SELECT *, DAYOFMONTH (LAST_DAY (SUBMIT_TIME)) DAY_M FROM practice_record ) A WHERE YEAR ...