Questions that, at one point, had a specific tag

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

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

SELECT PostId AS [Post Link],
  UserId AS [User Link], ClosedDate, CreationDate AS [Edit Date], Text AS [Tags]
FROM PostHistory INNER JOIN firstrev_cte ON PostHistory.Id=MinId
ORDER BY CreationDate DESC

Enter Parameters

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