[Archaeologist] Posts inactive for over 6 months and with which I did not interact

1

Please login or register to vote for this query.

(click on this box to dismiss)

History of Science and Math

Q&A for people interested in the history and origins of science and mathematics

DECLARE @UserId INT = ##UserId##;

SELECT COUNT(*) FROM Posts p
INNER JOIN Posts a on a.ParentId = p.Id
WHERE p.LastEditDate < DATEADD(month, -6, p.LastActivityDate)
AND( p.OwnerUserId = @UserId OR  a.OwnerUserId = @UserId)

Enter Parameters

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