Historical question grades by week

4

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select dateadd(week,0, datediff(week,0, CreationDate)) week,
       sum(iif(Score < 0, 1.0, 0)) downvoted,
       sum(iif(ClosedDate <= CreationDate+3 
               /*and IsClosedAsDuplicate = 0*/, 
               1.0, 0))/count(*) closed,
       sum(iif(DeletionDate <= CreationDate+3, 1.0, 0))/count(*) deleted
from Posts
where PostTypeId = 1
group by dateadd(week,0, datediff(week,0, CreationDate))
order by dateadd(week,0, datediff(week,0, CreationDate))

Enter Parameters

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