题解 | #21年8月份练题总数#
21年8月份练题总数
https://www.nowcoder.com/practice/b8f30b239b454ed490367b53ea95607d
难道最严谨的不是这个写法吗
select count(distinct device_id) as did_cnt,
count(distinct question_id) as question_cnt
from question_practice_detail
where `date` between '2021-08-01' and '2021-08-31'
select count(distinct device_id) as did_cnt, count(*) as question_cnt from question_practice_detail where `date` between '2021-08-01' and '2021-08-31'