Answers per month

0

Please login or register to vote for this query.

(click on this box to dismiss)

for Tall Jeff

SharePoint

Q&A for SharePoint enthusiasts

-- Answers per month
-- for Tall Jeff

select
  datepart(year, CreationDate) Year,
  datepart(month, CreationDate) Month,
  count(*) Count
from Posts where PostTypeId = 2
group by datepart(year, CreationDate), datepart(month, CreationDate)
order by datepart(year, CreationDate), datepart(month, CreationDate)

Enter Parameters

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