Questions which had given tag (included the editor who added it)

1

Please login or register to vote for this query.

(click on this box to dismiss)

Physics

Q&A for active researchers, academics and students of physics

; with firstrev_cte AS 
(
SELECT
p.Id AS pid, MIN(ph.Id) as MinId
FROM PostHistory ph INNER JOIN Posts p ON ph.PostId=p.Id
WHERE
  ph.PostHistoryTypeId in (3,6,9)
  AND ph.Text Like '%<##tagName##>%'
GROUP BY p.Id
)

SELECT pid AS [Post Link],
  url = 'site://posts/' + CAST(PostId AS varchar)+'/revisions',
  UserId AS [User Link], UserDisplayName
FROM PostHistory INNER JOIN firstrev_cte ON PostHistory.Id=MinId

Enter Parameters

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