How many comments do I have for each score.
Q&A for professional and enthusiast programmers
DECLARE @UserId int = ##UserId## SELECT c.* FROM Comments c WHERE UserId = @UserId ORDER BY Score DESC