How many comments do I have for each score.
Q&A for pro webmasters
-- My Comment Score distribution -- How many comments do I have for each score. DECLARE @UserId int = ##UserId## SELECT top 10 Count(*) AS CommentCount, Comments.Score, Comments.PostId AS [Post Link], Text FROM Comments WHERE Comments.UserId = @UserId GROUP BY Comments.Score, Comments.PostId, Text ORDER BY Comments.Score DESC