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.

Network Engineering

Q&A for network engineers

DECLARE @UserId int = ##UserId##

SELECT top 20
    Count(*) AS CommentCount,
    c.Score, p.Title
FROM 
    Comments c
    JOIN Posts p ON
    p.Id = c.PostId
--WHERE 
    --c.UserId = @UserId
GROUP BY 
    c.Score, p.title
ORDER BY 
    c.Score DESC

Enter Parameters

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