Where a specific tag was added by the given user

1

Please login or register to vote for this query.

(click on this box to dismiss)

Reverse Engineering Meta

Q&A about the site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation

with firstrev_cte AS
(
SELECT MIN(ph.Id) AS MinId, p.Id
FROM Posts p JOIN PostHistory ph ON ph.PostId=p.Id
WHERE ph.Text LIKE '%<##tagName?divergence-operator##>%'
  AND ph.PostHistoryTypeId in (3,6,9)
GROUP BY p.Id
)

SELECT
  ph.PostID AS [Post Link],
  'site://posts/' + CAST(ph.PostId AS varchar)+'/revisions' AS [Revision History],
  ph.CreationDate,
  ph.UserId AS [User Link]
FROM PostHistory ph INNER JOIN firstrev_cte ON ph.Id=MinId
WHERE ph.UserId=##UserId##

Enter Parameters

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