题解 | #计算用户8月每天的练题数量#
计算用户8月每天的练题数量
http://www.nowcoder.com/practice/847373e2fe8d47b4a2c294bdb5bda8b6
知识点:group by substr count
select SUBSTR(date,9,10) as day,
count(question_id) as question_cntfrom question_practice_detail
where SUBSTR(date,1,7)='2021-08'
group by SUBSTR(date,9,10)
;