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.

Code Golf and Coding Challenges

Q&A for programming puzzle enthusiasts and code golfers

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 to meta site
loading Hold tight while we fetch your results