device_id去重,模糊匹配日期,2个字段聚合count

select count(distinct device_id去重,模糊匹配日期,2个字段聚合count) as did_cnt,count(question_id) as question_cnt
from question_practice_detail
where date like '2021-08-%';