select q.id as [Post] from Posts q INNER JOIN posthistory...

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 
  q.id as [Post]
from
  Posts q
  INNER JOIN posthistory ph on (q.id = ph.postid)
where
  q.closeddate is not null
  and q.posttypeid = 1
  and ph.posthistorytypeid = 10
  and ph.comment = 2

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results