SQL for Non-Programmers -- Homework Practice

0

Please login or register to vote for this query.

(click on this box to dismiss)

Board and Card Games Meta

Q&A about the site for people who like playing board games, designing board games or modifying the rules of existing board games

SELECT TOP 10 OwnerUserId [User Link], AVG(Score)
FROM Posts p
GROUP BY OwnerUserId
HAVING COUNT(*) > 100 
AND AVG(Score) > (SELECT AVG(Score) FROM Posts WHERE OwnerUserId = 22656)
AND (SELECT Reputation FROM Users u WHERE OwnerUserId = u.Id) > 100
ORDER BY AVG(Score) DESC

Enter Parameters

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