This ranks the top 100 comments on the site. Note: can also be filtered to the top 100 comments of a certain user, if an ID is provided. Leave default '0' for 'all' comments.
Q&A for science fiction and fantasy enthusiasts
SELECT TOP 100 RANK() OVER (ORDER BY C.Score DESC) AS Rank, C.Id AS [Comment Link], U.Id AS [User Link], C.Score FROM Comments C INNER JOIN Users U ON C.UserId = U.Id WHERE U.Id = '21267' ORDER BY C.Score DESC