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