SELECT u.Id, SUM(c.Score) AS NumberOfUpvotes, COUNT (c.Id...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Chess Meta

Q&A about the site for serious players and enthusiasts of chess

SELECT u.Id, SUM(c.Score) AS NumberOfUpvotes, COUNT (c.Id) AS CommentsCounts
FROM Users u
JOIN Comments c
ON c.Userid = u.Id
GROUP BY u.Id
ORDER BY u.Id

Enter Parameters

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