Estimated reputation of a deleted user

1

Please login or register to vote for this query.

(click on this box to dismiss)

Mathematics

Q&A for people studying math at any level and professionals in related fields

--estimated reputation from upvotes and downvotes
--does not take into account:
---- 1. daily reputation cap
---- 2. reputation from suggested edits
---- 3. reputation deduced for downvoting
--some posts might have been deleted since then
SELECT SUM(case v.votetypeid
             WHEN 1 THEN 15  -- accept
             WHEN 2 THEN   -- upvote
               CASE p.posttypeid
                 WHEN 1 THEN 5  -- upvote question
                 WHEN 2 THEN 10  -- upvote answer
               END
             WHEN 3 THEN -2  -- downvote
             WHEN 9 THEN BountyAmount -- collected bounty
       END) as Rep
FROM Posts p INNER JOIN Votes v ON v.PostId=p.Id
WHERE p.OwnerDisplayName='user' + Convert(nvarchar(20), ##UserId##)
  AND (p.CommunityOwnedDate IS NULL) --not CW posts

Enter Parameters

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