Review badges

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, Date), @epoch) week,
         count(*) N,
         Name
  from Badges
  where Name in ('Reviewer', 'Strunk & White')
  group by datediff(week, @epoch, Date), Name
)

select week, Name, 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