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


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 = rt.postid
inner join posttags pt on pt.postid =
inner join tags t on = pt.tagid
where rt.reviewtaskstateid=3 -- invalidated
and rt.reviewtasktypeid =2 -- close
group by t.tagname
order by count(*) desc

Enter Parameters

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