Finding possible suspended users

1

Please login or register to vote for this query.

(click on this box to dismiss)

Poker Meta

Q&A about the site for serious players and enthusiasts of poker

----based on https://data.stackexchange.com/mathoverflow/query/901680/finding-possible-suspended-users
DECLARE @minBadges int = '##MinBadges?10##'
;With CTE AS
(
  SELECT UserId,COUNT(*) AS TotalBadges
  FROM Badges
  GROUP BY UserId
)

SELECT ID AS [User Link], DisplayName, Reputation, TotalBadges
FROM Users JOIN CTE ON Users.ID = CTE.UserId
WHERE Users.Reputation = 1 AND TotalBadges >= @minBadges
ORDER BY TotalBadges DESC, Users.ID

Enter Parameters

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