SELECT TOP 10 u.Id, COUNT(*) FROM Users u JOIN Posts p ON...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT TOP 10 u.Id, COUNT(*) FROM Users u
JOIN Posts p ON u.Id = p.OwnerUserId
WHERE p.CreationDate BETWEEN u.CreationDate AND DATEADD(day, 7, u.CreationDate)
GROUP BY u.Id
ORDER BY COUNT(*) DESC

Enter Parameters

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