Count of answers by user over time

1

Please login or register to vote for this query.

(click on this box to dismiss)

Tridion Meta

Q&A about the site for Tridion developers and administrators

DECLARE @UserId int = ##UserId?209103##

SELECT 
  DATEADD(YEAR, DATEDIFF(YEAR, 0, CreationDate), 0) AS [YEAR]
  , COUNT(*) AS Count
FROM Posts
WHERE OwnerUserId = @UserId
GROUP BY DATEADD(YEAR, DATEDIFF(YEAR, 0, CreationDate), 0)
ORDER BY [YEAR] DESC

Enter Parameters

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