SQL for Non-Programmers -- Homework Practice

0

Please login or register to vote for this query.

(click on this box to dismiss)

Economics Meta

Q&A about the site for professional and academic economists and analysts

SELECT TOP 10 SUM(p.PostTypeId) TotalAnswers, u.Id [User Link]
FROM Users u
JOIN Posts p ON p.OwnerUserId = u.Id
WHERE p.PostTypeId = 2
GROUP BY u.Id
HAVING SUM(p.PostTypeId) > 100 
ORDER BY u.Id DESC

Enter Parameters

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