Tags with a high proportion of zero-vote accepted answers

0

Please login or register to vote for this query.

(click on this box to dismiss)

Woodworking

Q&A for professional and amateur woodworkers

-- Tags with a high proportion of zero-vote accepted answers

SELECT t.TagName
, COUNT(*) AS 'Questions'
, CAST( COUNT(a.id) AS FLOAT ) / COUNT(*) AS 'Zero-Vote AcceptedPercent'
FROM Tags t
LEFT JOIN
     PostTags pt
ON   t.id = pt.TagId
LEFT OUTER JOIN
     Posts p
ON   pt.PostId = p.id
AND  p.AcceptedAnswerId != 0
LEFT JOIN
     Posts a
ON   a.Id = p.AcceptedAnswerId
AND a.Score = 0
WHERE t.TagNAme = 'Ant'
GROUP BY t.TagName
HAVING COUNT(*) > 200
ORDER BY 3 ASC

Enter Parameters

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