Old timer's luck

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

Select Top 500 Users.Id, usersAnswers.Answers, Users.Reputation, (Users.Reputation / UsersAnswers.Answers) as Ratio FROM
(
     Select U.id, count(Posts.id) as Answers
     From Posts, Users as U
     Where 
          Posts.OwnerUserId = U.id 
     Group by U.id
) as UsersAnswers, Users
Where UsersAnswers.id = Users.Id
Order by Ratio desc

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results