很简单的一道题,但是没有第一次写出来

问题出在:

问题

回答问题数量

正确:

count( issue_id)

错误:不小心去了个重

count(distinct issue_id)

完整代码

select answer_date
        ,round(count( issue_id)/count(distinct author_id),2)
        -- ,count( issue_id)
        -- ,count(distinct author_id)
from answer_tb
where answer_date>='2021-11-01' and answer_date<'2021-12-01'
group by answer_date
order by answer_date