SELECT TOP 100 Users.Id, DisplayName, Count(Posts.Id) AS ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

English Language Learners

Q&A for speakers of other languages learning English

SELECT 
    TOP 100
    Users.Id,
    DisplayName,
    Count(Posts.Id) AS Answers,
    AVG(CAST(Score AS float)) AS AverageAnswerScore
FROM
    Posts
  INNER JOIN
    Users ON Users.Id = OwnerUserId
WHERE 
    PostTypeId = 2
GROUP BY
    Users.Id, DisplayName
HAVING
    Count(Posts.Id) > 500
ORDER BY
    AverageAnswerScore DESC

Enter Parameters

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