Recent Comments

0

Please login or register to vote for this query.

(click on this box to dismiss)

Skeptics

Q&A for scientific skepticism

DECLARE @UserId INT = ##UserId:INT##

SELECT 

    ROW_NUMBER() OVER (ORDER BY c.Score DESC, c.CreationDate DESC) AS 'ID',
    c.PostID [Post Link],
    c.Score,
    c.CreationDate,
    u.DisplayName,
    c.Text

FROM Comments AS c
JOIN Posts AS p ON p.Id = c.PostId
JOIN Users AS u ON u.Id = p.OwnerUserId

WHERE c.UserId = @UserId

ORDER BY c.Score DESC, c.CreationDate DESC

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results