Questions closed by a specific user which were later reopened

2

Please login or register to vote for this query.

(click on this box to dismiss)

Drones and Model Aircraft Meta

Q&A for experienced flyers, pilots, and builders of drones and model aircraft

SELECT DISTINCT(c.PostId) AS [Post Link]
  FROM PostHistory AS c
  CROSS APPLY OPENJSON(c.Text, '$.Voters') AS v
  INNER JOIN PostHistory AS r
    ON r.PostId = c.PostId
   AND r.PostHistoryTypeId = 11 -- Post Reopend
   AND r.CreationDate > c.CreationDate
  WHERE c.PostHistoryTypeId = 10 -- Post Closed
    AND JSON_VALUE(v.Value, '$.Id') = ##UserId:int##
  ORDER BY c.PostId

Enter Parameters

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