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 TOP 50
     p.id, COUNT(*)
FROM
     Posts p
LEFT JOIN
     Posts a
ON   a.ParentId = p.id
AND  a.Score = 0
WHERE
    ISNULL( p.AcceptedAnswerId, 0 ) = 0
AND NOT EXISTS ( SELECT 1 FROM Posts a2 WHERE a2.ParentId = p.id AND a2.Score > 0 )
GROUP BY p.id
ORDER BY 2 DESC

Enter Parameters

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