Comments per month

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(year, CreationDate), datepart(month, CreationDate), 1) as month,
       count(*) as NumComments
from Comments
group by datefromparts(datepart(year, CreationDate), datepart(month, CreationDate), 1)
order by datefromparts(datepart(year, CreationDate), datepart(month, CreationDate), 1) asc

Enter Parameters

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