How much rep would you have if there was no reputation cap
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