Posts where last event was CW-ification (including the OP and the user who turned the post CW)

1

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
 ph.PostId AS [Post Link],
 revisions = 'site://posts/' + CAST(ph.PostId AS varchar)+'/revisions',
 p.OwnerUserId AS [User Link],
 ph.UserId AS [User Link]
FROM PostHistory ph INNER JOIN Posts p ON p.Id=ph.PostId
 WHERE (ph.PostHistoryTypeId=16)
---16 = CW
AND ph.Id IN (
   SELECT
     MAX(Id) as last
    FROM PostHistory
    GROUP BY PostId
)
---only look at the last event for the given post
ORDER BY ph.PostId DESC

Enter Parameters

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