SELECT TOP (50) POSTId, COUNT(Id) FROM Comments WHERE C...

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 TOP (50)
POSTId,
COUNT(Id)

FROM Comments

WHERE CreationDate > DateAdd(yy, -1, GetDate())

GROUP BY POSTId

ORDER BY COUNT(Id) DESC

Enter Parameters

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