How many comments do I have for each score.
Q&A about the site for serious players and enthusiasts of chess
-- My Comment Score distribution -- How many comments do I have for each score. DECLARE @UserId int = ##UserId## SELECT Score, Text, PostId AS [PostLink] FROM Comments WHERE UserId = @UserId AND Text Like '%bada%' ORDER BY Score DESC