My Most Popular Comments

6

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

DECLARE @UserId int = ##UserId##

SELECT 
TOP 100
    Score,
    LEFT(Text, 100),
    PostId as [Post 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