A Users total Rep if there was no reputation cap

8

Please login or register to vote for this query.

(click on this box to dismiss)

How much rep would you have if there was no reputation cap

Genealogy and Family History Meta

Q&A about the site for expert genealogists and people interested in genealogy or family history

-- A Users total Rep if there was no reputation cap
-- How much rep would you have if there was no reputation cap

DECLARE @UserId int = ##UserId##

SELECT 
    SUM(CASE
      WHEN VoteTypeId = 1 THEN 15 -- Accepted answer.
      WHEN VoteTypeId = 2 AND PostTypeId = 1 THEN 5 -- Upvoted question
      WHEN VoteTypeId = 2 AND PostTypeId = 2 THEN 10 -- Upvoted answer.
      WHEN VoteTypeId = 3 THEN -2 -- Downvote.
      WHEN VoteTypeId = 9 THEN isnull(BountyAmount,100) 
    END)
FROM
    Votes
  INNER JOIN 
    Posts ON Posts.Id = Votes.PostId
WHERE
    Posts.OwnerUserId = @UserId

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results