Users who downvoted you the most

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

DECLARE @MyUserId int = ##UserId##

SELECT Users.Id AS [User Link], COUNT(Votes.Id) AS [Number of Downvotes]
FROM Votes
INNER JOIN Posts ON Votes.PostId = Posts.Id
INNER JOIN Users ON Users.ID = Votes.UserId
WHERE Posts.OwnerUserId = @MyUserId
AND Votes.VoteTypeId = 3
GROUP BY Users.Id
ORDER BY COUNT(Votes.Id) DESC

Enter Parameters

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