My Comment Score distribution

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.

Software Quality Assurance and Testing Meta

Q&A about the site for software quality control experts, automation engineers, and software testers

-- My Comment Score distribution
-- How many comments do I have for each score.

DECLARE @UserId int = ##UserId##

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

Enter Parameters

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