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

Stack Overflow

Q&A for professional and enthusiast programmers

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

SELECT
count (*)
--TOP(100000)
  --q.Id AS [Question ID],
  --q.Title AS [Question Title],
  --q.Tags,
  --a.Id AS [Accepted Answer ID],
  --a.Body AS [Accepted Answer Body]
FROM
  Posts q
  INNER JOIN Posts a ON q.Id = a.ParentId
WHERE
  q.PostTypeId = 1 AND
  q.AcceptedAnswerId IS NOT NULL AND
  q.AcceptedAnswerId = a.Id AND
  q.CreationDate <= '2023-01-01'
  --(SELECT * FROM Posts WHERE PostTypeId = 2) * 100) AS AcceptedPercentage
--FROM
--    Posts q
--  INNER JOIN
--    Posts a ON q.AcceptedAnswerId = a.Id
--WHERE
--    a.OwnerUserId = @UserId
--  AND
--    a.PostTypeId = 2
    
    
--    SELECT
--  q.Id AS [Post Link],
--  url = 'site://q/' + CAST(q.Id AS varchar),
--  timeline = 'site://posts/' + CAST(q.Id AS varchar) + '/timeline',
--  COUNT(a.Id)
--FROM PostsWithDeleted a INNER JOIN PostsWithDeleted q ON q.Id=a.ParentId
--WHERE (a.DeletionDate IS NOT NuLL) AND 
-- (a.DeletionDate <= '2013-06-24')
--GROUP BY q.Id
--ORDER BY q.Id

Enter Parameters

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