Q&A for administrators and users of the CiviCRM Constituent Relationship Management software
SELECT TOP(##num?500##) RANK() OVER(ORDER BY Score DESC) AS Rank, Score, Id AS [Comment Link], Text, UserId AS [User Link], UserDisplayName, CreationDate FROM Comments ORDER BY Score DESC