SELECT datepart(yy, CreationDate),datepart(mm, CreationDa...

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 datepart(yy, CreationDate),datepart(mm, CreationDate), count(*) 
FROM Posts
WHERE OwnerUserId=976
 AND  PostTypeId = 2
 GROUP BY datepart(yy, CreationDate),datepart(mm, CreationDate)
 ORDER BY datepart(yy, CreationDate),datepart(mm, CreationDate) DESC

Enter Parameters

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