题解 | #21年8月份练题总数#

21年8月份练题总数

https://www.nowcoder.com/practice/b8f30b239b454ed490367b53ea95607d

select count(distinct device_id) as did_cnt,count(question_id) as question_cnt from question_practice_detail where date between '2021-08-01' and '2021-08-31';

刚开始出现2个错误,第一,在两个日期'2021-08-01'和'2021-08-31'中没有加上引号;第二,在计算练习过题目的总次数时,在question_id前加了distinct消除了重复的题目数,不过这不符合题意

全部评论

相关推荐

不愿透露姓名的神秘牛友
10-03 21:58
点赞 评论 收藏
分享
11-06 16:50
门头沟学院 Java
用微笑面对困难:word打字比赛二等奖的我,也要来凑合凑合
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务