SELECT u.Id, COUNT(p.Id) FROM Users u LEFT JOIN Posts p O...

0

Please login or register to vote for this query.

(click on this box to dismiss)

History

Q&A for historians and history buffs

SELECT u.Id, COUNT(p.Id)
FROM Users u
LEFT JOIN Posts p
  ON u.Id = p.OwnerUserId
GROUP BY u.Id;

Enter Parameters

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