How many comments do I have for each score.
Q&A about the site for people interested in the history and origins of science and mathematics
-- My Comment Score distribution -- How many comments do I have for each score. DECLARE @UserId int = ##UserId## SELECT Count(*) AS CommentCount, Score, Text FROM Comments WHERE UserId = @UserId GROUP BY Score, Text ORDER BY Score DESC