SELECT Users.Id AS [User Link], COUNT(Votes.Id), COUNT(Po...

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 Users.Id AS [User Link], COUNT(Votes.Id), COUNT(Posts.Id)
FROM Users
JOIN Posts ON Posts.OwnerUserId = Users.Id
RIGHT JOIN Votes ON Votes.PostId = Posts.Id
WHERE Votes.VoteTypeId = 3
GROUP BY Users.Id
ORDER BY COUNT(Votes.Id), COUNT(Posts.Id) DESC

Enter Parameters

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