percentage of questions closed by tag

0

Please login or register to vote for this query.

(click on this box to dismiss)

Network Engineering

Q&A for network engineers

select 
  count(*) as [questions closed],
  max(tags.count) as [total questions],
  (CONVERT(decimal,count(*)) / CONVERT(decimal,max(tags.count))) * 100 as [percent closed]
from 
  posts 
  inner join posttags on posts.id = posttags.postid
  inner join tags on tags.id = posttags.tagid
 where 
 tags.tagname in ('f#', 'c#', 'haskell', 'scala', 'clojure') and
   posts.closeddate is not null
group by tags.id

Enter Parameters

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