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 
  tags.tagname as [tag name],
  count(*) as [questions closed],
  tags.count as [total questions],
  (CONVERT(decimal,count(*)) / CONVERT(decimal,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 ('c++', 'java', 'c') and
   posts.closeddate is not null
group by tags.id, tags.tagname, tags.count

Enter Parameters

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