How many comments do I have for each score.
Q&A about the site for students, teachers, and linguists wanting to discuss the finer points of the Italian language
-- My Comment Score distribution -- How many comments do I have for each score. DECLARE @UserId int = ##UserId## SELECT Id as [User Link], Count(*) AS CommentCount, Score FROM Comments WHERE UserId = @UserId GROUP BY Score, Id ORDER BY Score DESC