SELECT
    COUNT(DISTINCT device_id) did_cnt,
    COUNT(date) AS question_cnt
FROM
    question_practice_detail
WHERE
    MONTH (date) = 8