How much rep would I have without Rep Cap?


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

-- How much rep would I have if there were no rep cap?
-- Copied from Joel Coehoorn in this answer:
-- Edited to use a specified User ID.

DECLARE @UserId int = ##UserId##

SELECT SUM(Case When VoteTypeID = 1 Then 15 WHEN VoteTypeID=2 THEN 10 WHEN VoteTypeID=3 THEN -2 ELSE 0 END)
FROM Votes v
INNER JOIN Posts p ON p.ID = v.PostID
WHERE p.OwnerUserID = @UserID AND p.CommunityOwnedDate IS NULL

Enter Parameters

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