select top 50000 a.postid as QuestionID, a.comment as La...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Home Improvement

Q&A for contractors and serious DIYers

select top 50000
       a.postid  as QuestionID,
       a.comment as Label,
       b.text    as Text
  from posthistory a
  join posthistory b on b.postid = a.postid
where  a.posthistorytypeid = 10
  and  b.posthistorytypeid = 2
  and  a.postid > ##IDStart:int##
  and  a.postid <= ##IDEnd:int##
order by a.postid

Enter Parameters

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