How many comments do I have for each score.
Q&A for people looking to bypass life's everyday problems with simple tricks
-- My Comment Score distribution -- How many comments do I have for each score. DECLARE @UserId int = ##UserId## SELECT Count(*) AS CommentCount, Score Id FROM Comments WHERE UserId = @UserId GROUP BY Score ORDER BY Score DESC