count of posts closed with reasons, since 2023, by month


Please login or register to vote for this query.

(click on this box to dismiss)

Hinduism Meta

Q&A about the site for followers of the Hindu religion and those interested in learning more about Hinduism

SELECT year(Posts.ClosedDate) as y, month(Posts.ClosedDate) as m,  cast (year(Posts.ClosedDate) as  varchar(10)) + '/' + cast(month(Posts.ClosedDate) as varchar(19)) as ym,  count(CONCAT ('', Posts.Id)) as Questions
FROM PostHistory
JOIN Posts ON Posts.Id = PostHistory.PostId
WHERE Posts.ClosedDate >= '2013-01-01' 
AND Posts.ClosedDate < '2013-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

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