What is my accepted answer percentage rate

0

Please login or register to vote for this query.

(click on this box to dismiss)

On avg how often are answers I give, accepted

History of Science and Math Meta

Q&A about the site for people interested in the history and origins of science and mathematics

-- What is my accepted answer percentage rate
-- On avg how often are answers I give, accepted

DECLARE @UserId int = ##UserId##
DECLARE @MinimumId int = ##MinimumId##

SELECT 
    (CAST(Count(a.Id) AS float) / (SELECT Count(*) FROM Posts WHERE OwnerUserId = @UserId AND PostTypeId = 2 AND Id > @MinimumId) * 100) AS AcceptedPercentage
FROM
    Posts q
  INNER JOIN
    Posts a ON q.AcceptedAnswerId = a.Id
WHERE
    a.OwnerUserId = @UserId
  AND
    a.PostTypeId = 2
  AND
    a.Id > @MinimumId

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results