Edits to specific user's posts by a specific user

0

Please login or register to vote for this query.

(click on this box to dismiss)

Physical Fitness Meta

Q&A about the site for physical fitness professionals, athletes, trainers, and those providing health-related needs

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

Options:
Switch sites:
loading Hold tight while we fetch your results