Review badge response


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'; --

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

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