Edits to specific user's posts by a specific user


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT P.Id AS [Post Link] 
FROM Posts P
JOIN PostHistory H on H.PostID = P.Id
-- PostOwnerId: The UserId of the user that owns the post
-- EditUserId: The UserId of the user that made the edit.
Where  H.PostHistoryTypeId = 5 and H.UserId = ##EditUserId## and P.OwnerUserId = ##PostOwnerId## 
ORDER BY H.CreationDate ASC

Enter Parameters

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