SELECT TOP 1000 * FROM PostHistory AS ph INNER JOIN Posts...

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 1000 * FROM PostHistory AS ph
  INNER JOIN Posts AS p ON p.Id = ph.PostId
  WHERE ph.PostHistoryTypeId = 12
  AND p.Score < -10
  --INNER JOIN Votes as v ON p.Id = v.Id
  --WHERE v.VoteTypeId = 12 --AND p.ClosedDate IS NOT NULL
  ORDER BY p.LastActivityDate DESC

Enter Parameters

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