Questions protected/unprotected by specified user

0

Please login or register to vote for this query.

(click on this box to dismiss)

Physical Fitness Meta

Q&A about the site for physical fitness professionals, athletes, trainers, and those providing health-related needs

SELECT PostId AS [Post Link], t.Name, ph.CreationDate as 'EventDate'
  FROM PostHistory AS ph
  INNER JOIN PostHistoryTypes AS t ON ph.PostHistoryTypeId = t.Id
  INNER JOIN Posts ON ph.PostId = Posts.id
  WHERE PostHistoryTypeId IN (19, 20) -- Question Protected, Question Unprotected
    AND UserId = ##UserId:int##
  ORDER BY EventDate

Enter Parameters

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