Q&A for users and developers of the Cardano cryptocurrency ecosystem
select DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0) AS [MONTH] , COUNT(DISTINCT Posts.Id) AS Count from posts where postTypeId = 1 -- AND CreationDate > '2018-01-01' GROUP BY DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0) ORDER BY [MONTH] DESC