Q&A for scientists using computers to solve scientific problems
-- How close are you to getting the Archaeologist badge?
-- "Edited 100 posts that were inactive for 6 months"
DECLARE @UserId INT = 881989;
SELECT COUNT(*) FROM Posts p
INNER JOIN Posts a on a.ParentId = p.Id
WHERE p.LastEditDate < DATEADD(month, -6, p.LastActivityDate)
AND p.LastEditorUserId = @UserId