Deleted Questions of User X


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 count(PostId) as [Total Post]
FROM Posts p
  INNER JOIN Users u ON p.OwnerUserId = u.Id
  INNER JOIN PostHistory h ON p.Id = h.PostId
WHERE PostTypeId = 1 AND 
      u.Id = ##UserId## AND
      h.PostHistoryTypeId = 12 -- Deleted

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results