SELECT u.OwnerUserId, Deleted_Year = u.DeletionDate, p.Po...

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
u.OwnerUserId, Deleted_Year = u.DeletionDate, p.PostTypeId, u.CreationDate, 
PostNoticeTypeId, DeletionUserId
FROM PostNotices u, Posts p 
WHERE 
u.PostId = p.Id
and DeletionUserId in (-1)
and u.DeletionDate IS NOT NULL

Order By 
u.OwnerUserId, PostTypeId DESC

Enter Parameters

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