How many comments do I have for each score.
Q&A for Drupal developers and administrators
DECLARE @UserId int = ##UserId## SELECT Count(*) AS CommentCount, Score FROM Comments WHERE UserId = @UserId AND CreationDate >= 2024-01-01 GROUP BY Score ORDER BY Score DESC