题解 | #计算用户8月每天的练题数量#
计算用户8月每天的练题数量
https://www.nowcoder.com/practice/847373e2fe8d47b4a2c294bdb5bda8b6
-- SQL自带的DAY(),MONTH(),YEAR()函数计算'2021-08-13'类型值的年月日数据 SELECT DAY(date) AS day, COUNT(question_id) AS question_cnt FROM question_practice_detail WHERE date LIKE '2021-08%' GROUP BY date