posts closed since 2012 with reasons

0

Please login or register to vote for this query.

(click on this box to dismiss)

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

SELECT cast (year(Posts.ClosedDate) as  varchar(10)) as yr, month(Posts.ClosedDate) as m,  count(CONCAT ('http://programmers.stackexchange.com/q/', Posts.Id)) as Questions
FROM PostHistory
JOIN Posts ON Posts.Id = PostHistory.PostId
WHERE Posts.ClosedDate >= '2012-01-01' 
--AND Posts.ClosedDate < '2012-12-01'
AND PostHistoryTypeId = 10
AND PostHistory.Comment != 1
group by year(Posts.ClosedDate), month(Posts.ClosedDate)
ORDER BY 1 desc, 2 desc

Enter Parameters

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