Reputation per Character

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 1000 U.DisplayName, PostCount, TotalPostsLength, AveragePostLength, U.Reputation, (U.Reputation*1000/TotalPostsLength) AS RepPer1kChars
FROM (
  SELECT
    SUM(LEN(Body)) AS TotalPostsLength, 
    AVG(LEN(Body)) AS AveragePostLength,
    COUNT(Id) AS PostCount,
    OwnerUserId
  FROM Posts 
  GROUP BY Posts.OwnerUserId
) AS P
JOIN Users U ON U.Id=P.OwnerUserId
WHERE Reputation > 3000
ORDER BY RepPer1kChars DESC

Enter Parameters

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