Q&A for SharePoint enthusiasts
-- WITH SuggEds AS ( SELECT se.OwnerUserId, se.* FROM SuggestedEdits se LEFT JOIN Posts p ON p.Id = se.PostId WHERE se.ApprovalDate IS NULL AND se.RejectionDate IS NULL -- )