My Comments, ordered by Score 2
Q&A for professional and enthusiast programmers
-- My Comment Score distribution -- How many comments do I have for each score. DECLARE @UserId int = ##UserId## SELECT Comments.Score, Text, Posts.Title, Posts.Id ParentId FROM Comments join Posts on Comments.PostId = Posts.Id WHERE UserId = @UserId and Comments.Score > 0 ORDER BY Comments.Score DESC