Old unloved questions possibly eligible for auto-deletion v.3

0

Please login or register to vote for this query.

(click on this box to dismiss)

Questions with score <= 0, low views, no answers, no OP activity

Stack Overflow

Q&A for professional and enthusiast programmers

-- Old unloved questions possibly eligible for auto-deletion v.3
-- Questions with score <= 0, low views, no answers, no OP activity

SELECT t.TagName, COUNT(*), COUNT(p.id)
FROM Tags t
LEFT JOIN
     PostTags pt
ON   t.id = pt.TagId
LEFT OUTER JOIN
     Posts p
ON   pt.PostId = p.id
WHERE 
    p.PostTypeId = 1
AND p.Score < 1
AND p.ViewCount < 500
AND ( p.AnswerCount < 1 OR p.AnswerCount IS NULL )
GROUP BY t.TagName
ORDER BY 3 DESC

Enter Parameters

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