Top 500 answerers on the site for CUDA

0

Please login or register to vote for this query.

(click on this box to dismiss)

A list of the top 500 users with the highest average answer score excluding community wiki / closed posts or users with less than 10 answers

Engineering

Q&A for professionals and students of engineering

SELECT 
    /*TOP 500*/
    Users.Id as [User Link],
    Count(a.Id) AS Answers,
    CAST(AVG(CAST(a.Score AS float)) as numeric(6,2)) AS [Average Answer Score]
FROM
  (
    SELECT 
      b.*
    FROM 
        Posts b
      INNER JOIN
        PostTags pt ON pt.PostId = b.Id
      INNER JOIN
        Tags t on t.Id = pt.TagId
      WHERE 
        TagName in ('cuda') and b.PostTypeId = 0 and CommunityOwnedDate is null and ClosedDate is null
      ) a
INNER JOIN
    Users ON Users.Id = a.OwnerUserId
GROUP BY
    Users.Id, Users.DisplayName
HAVING
    Count(a.Id) > 0
ORDER BY
    [Average Answer Score] DESC

Enter Parameters

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