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], ph.Comment, ph.CreationDate FROM PostHistory ph WHERE (ph.UserId=##userid##) AND (ph.PostHistoryTypeId in (##types?1,2,3,4,5,6,7,8,9##)) AND (ph.CreationDate >= '##Date1?2021-01-01##') AND (ph.CreationDate <= '##Date2?2022-01-01##') ORDER BY ph.CreationDate