Got most rep by questions

1

Please login or register to vote for this query.

(click on this box to dismiss)

Counts only question up/dows, without the rep 1 lower limit.

Stack Overflow en español

Preguntas y respuestas para programadores y profesionales de la informática

SELECT TOP 100
  Posts.OwnerUserId AS [User Link],
  Posts.OwnerUserId,
  SUM(CASE WHEN Votes.VoteTypeId = 2 THEN 10 ELSE -2 END) AS Rep
FROM Posts, Votes
WHERE
  Posts.PostTypeId = 1
  AND
  Votes.VoteTypeId BETWEEN 2 AND 3
  AND
  Votes.PostId = Posts.Id
  AND
  Posts.OwnerUserId > 0
GROUP BY Posts.OwnerUserId
ORDER BY Rep DESC, Posts.OwnerUserId

Enter Parameters

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