How many comments do I have for each score.
Q&A for professionals and students of engineering
DECLARE @UserId int = ##UserId## SELECT Count(*) AS CommentCount, Score, Text FROM Comments WHERE UserId = @UserId GROUP BY Score, Text ORDER BY Score DESC