test query

0

Please login or register to vote for this query.

(click on this box to dismiss)

Writing

Q&A for the craft of professional writing, including fiction, non-fiction, technical, scholarly, and commercial writing

SELECT u.DisplayName, u.Id, COUNT(c.Id) AS TotalComments, SUM(c.Score) AS TotalCommentUpvotes
FROM Users u
LEFT JOIN Comments c ON u.Id = c.UserId
GROUP BY u.DisplayName, u.Id
ORDER BY u.Id

Enter Parameters

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