DECLARE @UserId int = ##UserId## SELECT TOP 100 Score, L...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

DECLARE @UserId int = ##UserId##

SELECT TOP 100
  Score,
  LEFT(Text, 100),
  Id as [Comment Link]
FROM 
    Comments
WHERE 
    UserId = @UserId
ORDER BY 
    Score DESC,
    PostId DESC

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results