Deletable questions (tweaked for <source-code>)


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 top 200 as [Post Link],
   p.score as 'Question Score',
   a.score as 'Answer Max Score',
   count(v.votetypeid) as 'Delete Votes'
from posts p
left join posthistory ph on ph.postid =
left join votes v on (v.postid = and v.votetypeid = '10')
inner join posthistorytypes phn on = ph.posthistorytypeid
inner join posts a on p.acceptedanswerid =
ph.comment != 1 and ph.comment != 101
and ph.posthistorytypeid = 10
and p.acceptedanswerid is not null
and p.closeddate is not null
and datediff(d, p.closeddate, getdate()) >= 2
and p.tags like '%' + ##TagsContain:string?%%## + '%'
and p.tags not like '%' + ##TagsDoNotContain:string?xyzzy## + '%'
and p.viewcount < ##ViewCount:int?2000##
and a.score <= ##AnswerMax:int?1##
group by, p.score, v.votetypeid, a.score
having count(v.votetypeid) = 0
order by p.score asc, a.score asc

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results