User Post Count Example

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 100 Users.Id, Users.DisplayName AS [Username], COUNT(Posts.Id) AS [Post Count] FROM Users
JOIN Posts ON Posts.OwnerUserId = Users.Id
GROUP BY Users.Id, Users.DisplayName
ORDER BY COUNT(Posts.Id) DESC;

Enter Parameters

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