题解 | #计算用户8月每天的练题数量#
计算用户8月每天的练题数量
http://www.nowcoder.com/practice/847373e2fe8d47b4a2c294bdb5bda8b6
select DAY(date) as day, count(question_id) as question_cnt
from question_practice_detail
where month(date)=8 and YEAR(date)=2021
group by date
查询:day、练习题目的用户数
条件:2021年8月
分组依据:每天