SQL Server related thread volume by month

0

Please login or register to vote for this query.

(click on this box to dismiss)

Tridion

Q&A for Tridion developers and administrators

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 sites:
loading Hold tight while we fetch your results