Close Rate by Tag (Tags with >4 Questions Only)

0

Please login or register to vote for this query.

(click on this box to dismiss)

The Workplace

Q&A for members of the workforce navigating the professional setting

SELECT
    Tags.tagname AS 'Tag', 
    AVG(Tags.Count) AS 'Count',
    COUNT(Posts.id) AS 'Closed',
    ROUND(COUNT(Posts.id) * 1.000 / AVG(Tags.Count),3)*100 AS '%'

FROM Tags 
    JOIN PostTags ON PostTags.tagid = Tags.id
    JOIN Posts ON Posts.id = PostTags.postid
    
WHERE Posts.ClosedDate IS NOT NULL and Tags.Count > 5


GROUP BY Tags.tagname
ORDER BY '%' DESC

Enter Parameters

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