Old timer's luck

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

Select Top 500 Users.Id as [User Link], UserPosts.PostCount, Users.Reputation, (Users.Reputation / UserPosts.PostCount) as ReputationToPostsRatio FROM
(
     Select U.id, count(Posts.id) as PostCount
     From Posts, Users as U
     Where 
          Posts.OwnerUserId = U.id 
     Group by U.id
) as UserPosts, Users
Where UserPosts.id = Users.Id
Order by ReputationToPostsRatio desc

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results
:records returned in :time ms:cached