SELECT TOP 10 u.Id , COUNT(c.UserId) FROM Users u INNER J...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Vegetarianism

Q&A for those committed to a vegan or vegetarian lifestyle and anyone interested in learning more

SELECT TOP 10 u.Id , COUNT(c.UserId)
FROM Users u INNER JOIN Comments c
ON u.Id = c.UserId
GROUP BY u.ID
ORDER BY COUNT(c.UserId) DESC

SELECT COUNT(*)
FROM Comments
WHERE UserId = 1672

Enter Parameters

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