Amount of comments per month in the past few months

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT DATEFROMPARTS(DATEPART(yy,c.CreationDate), DATEPART(mm,c.CreationDate), 15), COUNT(*)
FROM Comments c
GROUP BY DATEPART(yy,c.CreationDate), DATEPART(mm,c.CreationDate)
ORDER BY DATEPART(yy,c.CreationDate), DATEPART(mm,c.CreationDate)

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results