How many comments do I have for each score.
Q&A about the site for expert genealogists and people interested in genealogy or family history
-- 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