SQL for Non-Programmers -- Homework Practice


Please login or register to vote for this query.

(click on this box to dismiss)


Q&A for users, experts, and developers of the Tezos blockchain project

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

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results