Score per post ratio

0

Please login or register to vote for this query.

(click on this box to dismiss)

Display, in descending order, the score-to-post ratio of users with at least MinRep

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

-- Enter Query Title
-- Enter Query Description

    SELECT DisplayName, PostCount, TotalScore, 
           TotalScore*1.0/PostCount as Ratio
      FROM Users 
INNER JOIN

(SELECT OwnerUserId, COUNT(*) AS PostCount, SUM(Score) As TotalScore
       FROM Posts
   GROUP BY OwnerUserId ) x

      ON OwnerUserId = Id
   WHERE Reputation > ##MinRep##
ORDER BY Ratio DESC

Enter Parameters

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