Edits to old/new posts

1

Please login or register to vote for this query.

(click on this box to dismiss)

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

SELECT 
  ph.PostId AS [Post Link],
    'site://posts/' + CAST(ph.PostId AS varchar)+'/revisions' AS [Revisions],
  p.CreationDate, ph.CreationDate, 
  ph.UserId AS [User Link], ph.Comment
FROM PostHistory ph INNER JOIN Posts p ON ph.PostId=p.Id
WHERE (ph.CreationDate>='##Date1?2022-04-01##') AND (ph.CreationDate<='##Date2?2022-04-02##') AND
 (p.CreationDate >= '##Date3?1900-01-01##') AND (p.CreationDate <= '##Date4?2021-01-01##')
  AND (ph.PostHistoryTypeId in (##types?1,2,3,4,5,6,7,8,9##))
ORDER BY ph.CreationDate DESC

Enter Parameters

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