No of posts per user

0

Please login or register to vote for this query.

(click on this box to dismiss)

Gardening and Landscaping

Q&A for gardeners and landscapers

--SELECT count(Id) as NumberOfPosts, OwnerUserId
--FROM Posts
--GROUP BY OwnerUserId
--ORDER BY count(Id) asc;


SELECT u.OwnerUserId, avg(u.Score) as AvgScore
FROM Posts AS u
Inner JOIN Posts AS p ON u.OwnerUserId = p.OwnerUserId
GROUP BY u.OwnerUserId 
ORDER by AvgScore DESC

Enter Parameters

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