"Meta Reputation Classifications"

0

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

Physical Fitness

Q&A for physical fitness professionals, athletes, trainers, and those providing health-related needs

-- A Users total Rep ON META if there was no reputation cap
-- HAH repCap on meta...
-- How much rep would you have if there was no reputation cap

DECLARE @UserId int = ##UserId##

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

Enter Parameters

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