DECLARE @MinRep int = ##MinRepToConsider## SELECT TOP 500...

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

-- Enter Query Title
-- Enter Query Description
DECLARE @MinRep int = ##MinRepToConsider##
SELECT TOP 500
    Id AS [User Link],
    Reputation,
    Reputation /
    (SELECT COUNT(*)
    FROM posts
    WHERE posts.OwnerUserId = Users.Id
    ) AS [Rep Per Post]
FROM Users
WHERE Users.Reputation > @MinRep
ORDER BY [Rep Per Post] DESC

Enter Parameters

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