My Top Comments

6

Please login or register to vote for this query.

(click on this box to dismiss)

Links you to your top comments (score > 0), in order of score.

Super User

Q&A for computer enthusiasts and power users

DECLARE @UserId int = ##UserId##
DECLARE @MinScore int = ##MinimumScore?2##

SELECT 
    c.Score,
    c.Id AS [Comment Link],
    FORMAT(c.CreationDate, 'yy-MM-dd', 'en-US') AS [Date]
    
FROM 
    Comments c
WHERE 
    c.Score >= @MinScore
    AND c.UserId = @UserId
ORDER BY 
    c.Score DESC

Enter Parameters

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