Got most rep by negatively scored questions

1

Please login or register to vote for this query.

(click on this box to dismiss)

History of Science and Math

Q&A for people interested in the history and origins of science and mathematics

WITH Raw AS (
  SELECT
    Posts.Id AS PostId,
    MIN(Posts.OwnerUserId) AS UserId,
    SUM(34 - 12 * Votes.VoteTypeId) AS QRep
  FROM Posts, Votes
  WHERE
    Posts.Id = Votes.PostId
    AND
    Votes.VoteTypeId BETWEEN 2 AND 3
    AND
    Posts.PostTypeId = 1
    AND
    Posts.Score < 0
    AND
    Posts.OwnerUserId > 0
  GROUP BY Posts.Id
)
SELECT TOP 100
  UserId AS [User Link],
  UserId,
  SUM(QRep) AS Rep
FROM Raw
WHERE QRep > 0
GROUP BY UserId
ORDER BY Rep DESC, UserId

Enter Parameters

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