## Is there a functioning tracker for the number of questions that need review in the close queue?

0

(click on this box to dismiss)

https://math.meta.stackexchange.com/questions/32352

Q&A for people studying math at any level and professionals in related fields

``````declare @closetasktypeid int = 2
declare @maxdates int
declare @start date
select @start = (select min(creationdate)
select @maxdates = datediff(d, @start, convert(date,dateadd(d, -(datepart(dw, getdate())), getdate())))

create table #closevotes (creationdate date, deletiondate date);
create index #cv_date on #closevotes(creationdate, deletiondate);
select creationdate
,  deletiondate
and creationdate > ##startdate:string?2017-07-10##

;with days as (
select top (@maxdates)
row_number() over(order by id) as rownum
from posts
)

select dateadd(d, rownum, @start) as utcdate
, count(*) as [# of tasks]
, sum(case when r.deletiondate is null then 1 else 0 end) [not completed]
, (select count(*)
and convert(date,rtr.creationdate) = dateadd(d, rownum, @start)
) [# of reviews]
, (select 50 + avg(datediff(hh,creationdate, deletiondate))
where convert(date,deletiondate) = dateadd(d, rownum, @start)) [# hours to complete (offset + 50)]
from days d