DECLARE @UserId int = 44523 --<-- Change this by your use...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Meta Stack Overflow

Q&A about Stack Overflow, Server Fault and Super User

DECLARE @UserId int = 44523 --<-- Change this by your user ID.
SELECT Count(*) AS CommentCount, Score
FROM Comments
WHERE UserId = @UserId
GROUP BY Score
ORDER BY Score DESC

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results
:records returned in :time ms:cached