Top respondedores

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

-- Modified version of https://meta.stackexchange.com/a/169939/625180

SELECT TOP 500
  ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS [#],
  OwnerUserId as [User Link],
  COUNT(*) as PostCount,
  SUM(Score) as TotalScore,
  CAST(SUM(Score) AS float) / CAST(COUNT(*) AS float) as [Avg Score Per Post]
FROM
  Posts
WHERE
  PostTypeId = 2 AND
  OwnerUserId != 1
GROUP BY OwnerUserId
ORDER BY COUNT(*) DESC

Enter Parameters

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