5000 newest answers to bad questions

0

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 5000
  case
    when q.acceptedanswerid = a.id then 1
    else 0 
  end as [Accepted], a.score as [Score], a.id as [Post Link], q.closeddate as [Date Closed], a.creationdate as [Date Posted]
from
  Posts a
  inner join posts q on a.parentid = q.id
where
  q.closeddate is not null
  and not exists (select 1 from PostHistory where PostId=q.Id and CreationDate=q.ClosedDate and PostHistoryTypeId=10 and Comment in (101,1))
  and a.score <= ##MaxAnswerScore:int?10##
  and q.score <= ##MaxQuestionScore:int?10##
order by
  a.creationdate desc

Enter Parameters

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