Q&A for professional and enthusiast programmers
-- By Questions (Including Deleted and Closed) SELECT TOP 20 COUNT(*) AS QuestionIncludingDeletedAndClosedCount, P.OwnerUserId AS [User Link] FROM PostsWithDeleted P --JOIN Users U ON U.Id = P.OwnerUserId WHERE P.PostTypeId = 1 -- Questions GROUP BY P.OwnerUserId ORDER BY COUNT(*) DESC ;