Users above the given score and number of posts

1

Please login or register to vote for this query.

(click on this box to dismiss)

MathOverflow

Q&A for professional mathematicians

SELECT
  OwnerUserId AS [User Link], OwnerDisplayName,
  SUM(Score) AS [Score],
  COUNT(p.Id) AS [Posts],
  SUM(case when PostTypeId = 1 then 1 else 0 end) AS [Questions],
  SUM(case when PostTypeId = 2 then 1 else 0 end) AS [Answers],
  u.Reputation, u.LastAccessDate
FROM Posts p LEFT OUTER JOIN Users u ON p.OwnerUserId=u.Id
---WHERE OwnerUserId IS NULL
GROUP BY OwnerUserId, OwnerDisplayName, u.Reputation, u.LastAccessDate
HAVING (SUM(Score)>=##minscore?500##) AND (COUNT(p.Id)>=##minposts?50##)
ORDER BY SUM(Score) DESC

Enter Parameters

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