Sum of comment votes

0

Please login or register to vote for this query.

(click on this box to dismiss)

What are my comments with the highest score?

Server Fault

Q&A for system and network administrators

-- My top comments
-- What are my comments with the highest score?

DECLARE @UserId int = ##UserId##

SELECT 
    SUM(Score)
FROM 
    Comments
WHERE 
    UserId = @UserId

Enter Parameters

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