How many helpful answers have I posted?

0

Please login or register to vote for this query.

(click on this box to dismiss)

How many of my answers were either accepted or have score > 0?

Project Management

Q&A for project managers

-- How many helpful answers have I posted?
-- How many of my answers were either accepted or have score > 0?

DECLARE @UserId int = ##UserId##

SELECT 
    Count(a.Id) AS Accepted
FROM
    Posts q
  INNER JOIN
    Posts a ON q.AcceptedAnswerId = a.Id
WHERE
    a.OwnerUserId = @UserId
  AND
    a.PostTypeId = 2

Enter Parameters

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