By Joel Coehoorn in this answer: http://meta.stackoverflow.com/questions/42121/is-there-a-script-tool-to-calculate-the-rep-as-if-there-were-no-cap
Q&A about the site for people who build and repair bicycles, people who train cycling, or commute on bicycles
DECLARE @UserID int SET @UserID = 22656 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