Users with zero accept rate

0

Please login or register to vote for this query.

(click on this box to dismiss)

Does not count self-answers. Shows users with at least @MinAnswers answers.

Physics

Q&A for active researchers, academics and students of physics

-- Users with highest accept rate of their answers
-- Does not count self-answers. 
-- Shows users with at least @MinAnswers answers.

DECLARE @MinAnswers int = ##MinAnswers##


SELECT TOP 100
  u.Id AS [User Link],
  count(*) AS NumAnswers,
  sum(case when q.AcceptedAnswerId IS NOT NULL then 1 else 0 end) AS NumAccepted
FROM       Posts q
INNER JOIN Posts a ON a.ParentId = q.Id
INNER JOIN Users u ON u.Id = q.OwnerUserId
GROUP BY u.Id
HAVING count(*) >= @MinAnswers
ORDER BY NumAccepted ASC, NumAnswers DESC

Enter Parameters

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