My Best Comments

3

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu

Q&A for Ubuntu users and developers

-- My Best Comments

DECLARE @UserId int = ##UserId##

SELECT TOP 10 WITH TIES
    Text,
    PostId [Post Link],
    Score,
    Count(*) OVER (PARTITION BY Score) AS NumberSameScore
FROM 
    Comments
WHERE 
    UserId = @UserId AND Score > 3
ORDER BY 
    Score DESC

Enter Parameters

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