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

1

Please login or register to vote for this query.

(click on this box to dismiss)

Mathematics

Q&A for people studying math at any level and professionals in related fields

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

SELECT PostId AS [Post Link],
  url = 'site://posts/' + CAST(PostId AS varchar)+'/revisions',
  UserId AS [User Link], UserDisplayName, CreationDate, Comment, 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