My Comment Score distribution

63

Please login or register to vote for this query.

(click on this box to dismiss)

How many comments do I have for each score.

Bicycles

Q&A for people who build and repair bicycles, people who train cycling, or commute on bicycles

DECLARE @UserId int = ##UserId##

SELECT 
    Count(*) AS CommentCount,
    Score
FROM 
    Comments
WHERE 
    UserId = @UserId
GROUP BY 
    Score
ORDER BY 
    Score DESC

Enter Parameters

Options:
loadingHold tight while we fetch your results
:records rows returned in :time ms:cached