Number of posts for suspended users


Please login or register to vote for this query.

(click on this box to dismiss)

Blender Meta

Q&A about the site for people who use Blender to create 3D graphics, animations, or games

DECLARE @minBadges int = '##MinBadges?10##'
;With CTE AS
  SELECT UserId,COUNT(*) AS TotalBadges
  FROM Badges

SELECT Users.ID AS [User Link], Displayname, Reputation, TotalBadges,
  Count(Posts.Id) AS [Count]
FROM Users JOIN CTE ON Users.ID = CTE.UserId
  INNER JOIN Posts  ON Users.Id=Posts.OwnerUserId
WHERE Users.Reputation = 1 AND TotalBadges >= @minBadges
GROUP BY Users.Id,DisplayName,Reputation,TotalBadges
ORDER BY Count(Posts.Id) DESC, Users.ID

Enter Parameters

Switch to main site
loading Hold tight while we fetch your results