Review badge response

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

declare @epoch datetime = '2011-11-20'; -- http://blog.stackoverflow.com/2011/11/improved-reviewing/

with review_weeks as (
  select dateadd(week, datediff(week, @epoch, CreationDate), @epoch) week,
         count(*) N
  from ReviewTasks
  group by datediff(week, @epoch, CreationDate)
)

select week, N
from review_weeks
where abs(datediff(month, week, @epoch)) <= 6
order by week

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results