Questions with highest total reputation of answerers

1

Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers

Q&A for Drupal developers and administrators

SELECT TOP(##num?100##)
RANK() OVER(ORDER BY SUM(u.Reputation) DESC) AS Rank,
q.Id AS [Post Link],
SUM(u.Reputation) AS [Total Reputation],
COUNT(a.Id) AS [# of answers]
FROM Posts q INNER JOIN Posts a ON a.ParentId=q.Id
  INNER JOIN Users u ON u.Id=a.OwnerUserId
GROUP BY q.Id
ORDER BY SUM(u.Reputation) DESC

Enter Parameters

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