select t.tagname, count(*) as [invalidated] from reviewta...

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select t.tagname, count(*) as [invalidated]
from reviewtasks rt
inner join posts p on p.id = rt.postid
inner join posttags pt on pt.postid = p.id
inner join tags t on t.id = pt.tagid
where rt.reviewtaskstateid=3 -- invalidated
and rt.reviewtasktypeid =2 -- close
group by t.tagname
order by count(*) desc

Enter Parameters

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