Users with most posts (questions, answers)

1

Please login or register to vote for this query.

(click on this box to dismiss)

Aviation

Q&A for aircraft pilots, mechanics, and enthusiasts

SELECT TOP(##num?500##)
  u.Id AS [User Link],
  COUNT(p.Id) AS [Count],
  SUM(case when p.PostTypeId = 1 then 1 else 0 end) AS [Questions],
  SUM(case when p.PostTypeId = 2 then 1 else 0 end) AS [Answers]
FROM Users u INNER JOIN Posts p ON p.OwnerUserId=u.Id  
GROUP BY u.Id
ORDER BY COUNT(p.Id) DESC

Enter Parameters

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