Accepted Answer Rate for Users > 3000 rep

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

SELECT 
    (CAST(Count(a.Id) AS float) / (SELECT Count(p.Id) FROM Posts p INNER JOIN Users u ON p.OwnerUserId = u.Id WHERE u.Reputation > 3000 AND PostTypeId = 2) * 100) AS AcceptedPercentage
FROM
    Posts q
  INNER JOIN
    Posts a ON q.AcceptedAnswerId = a.Id
  INNER JOIN
    Users u ON a.OwnerUserId = u.Id
WHERE
    u.Reputation > 3000
  AND
    a.PostTypeId = 2

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results
:records returned in :time ms:cached