SQL Server related thread volume by month

0

Please login or register to vote for this query.

(click on this box to dismiss)

Gardening and Landscaping Meta

Q&A about the site for gardeners and landscapers

SELECT COUNT(*) as Volume,
DATEPART(year, P.CreationDate) as [Year], 
DATEPART(month, P.CreationDate) as Month
FROM [Posts] as P
WHERE (Tags like '%<surface%') 
and PostTypeId = 1 
and CommunityOwnedDate is null and ClosedDate is null
GROUP by DATEPART(YEAR, P.CreationDate), DATEPART(MONTH, P.CreationDate)
ORDER by [Year], Month

Enter Parameters

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