My top comments

0

Please login or register to vote for this query.

(click on this box to dismiss)

How many comments do I have for each score.

History of Science and Math

Q&A for people interested in the history and origins of science and mathematics

DECLARE @UserId int = ##UserId##

SELECT 
    p.Id,
    p.Title,
    c.Score,
    c.Text
FROM Comments c
JOIN Posts p
ON c.PostId = p.Id
WHERE 
    c.UserId = @UserId AND
    c.Score >= 3
ORDER BY 
    c.Score DESC

Enter Parameters

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