SELECT COUNT(p.Id) as numPosts, c.UserId FROM Posts p JOI...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Travel Answers Meta

Q&A for road warriors and seasoned travelers

SELECT COUNT(p.Id) as numPosts, c.UserId
FROM Posts p JOIN COMMENTS c ON p.id = c.PostId
GROUP BY c.UserId;

Enter Parameters

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