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