题解 | #计算用户8月每天的练题数量#
计算用户8月每天的练题数量
https://www.nowcoder.com/practice/847373e2fe8d47b4a2c294bdb5bda8b6
select day(date) as day,count(date) as question_cnt from question_practice_detail where year(date) = 2021 and month(date) = 8 group by date
这一题不会写,搜索必须是day(date) 开始写的是date 第一列显示的都是具体天数,应该是13开始的数字
第三行里面的按时间搜索需掌握,year和month后面括号里面写date才可以使用,因为题里面没有给date