Top 10 most downvoted users

0

Please login or register to vote for this query.

(click on this box to dismiss)

Science Fiction and Fantasy Meta

Q&A about the site for science fiction and fantasy enthusiasts

SELECT TOP 10 p.OwnerUserId as [User Link], 
  SUM(CASE WHEN v.VoteTypeId = 2 THEN 1 ELSE 0 END) as Upvotes,
  SUM(CASE WHEN v.VoteTypeId = 3 THEN 1 ELSE 0 END) as Downvotes
FROM Votes v
INNER JOIN Posts p on p.ID = v.PostId
WHERE p.OwnerUserId > 0
GROUP BY p.OwnerUserId
ORDER BY Downvotes desc

Enter Parameters

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