Does not count self-answers. Shows users with at least @MinAnswers answers.
Q&A for enthusiasts and scholars of mythology and folklore
-- Users with highest accept rate of their answers -- Does not count self-answers. -- Shows users with at least @MinAnswers answers. SELECT TOP 100 u.Id AS [User Link], MIN(u.Reputation), MAX(u.Reputation), count(*) AS NumQuestions, sum(case when q.AcceptedAnswerId IS NOT NULL then 1 else 0 end) AS NumAccepted FROM Posts q INNER JOIN Users u ON u.Id = q.OwnerUserId WHERE q.PostTypeId = 1 -- question GROUP BY u.Id ORDER BY NumAccepted ASC, NumQuestions DESC