Active users with a reputation cutoff

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT 
  Users.Id AS [User Link],
  Users.Reputation,
  COUNT(*) AS postnumber
FROM Users
JOIN Posts ON Users.Id = Posts.OwnerUserId
WHERE DATEDIFF(MONTH, Posts.CreationDate, GetDate()) <= ##AgeCutoffInMonths##
  AND Users.Reputation >= ##ReputationCutoff##
GROUP BY Users.Id, Users.Reputation
ORDER BY Users.Reputation DESC

Enter Parameters

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