Scores of the posts which had the given tag at some point

1

Please login or register to vote for this query.

(click on this box to dismiss)

Science Fiction and Fantasy

Q&A for science fiction and fantasy enthusiasts

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

SELECT pid AS [Post Link],
  OwnerUserId AS [User Link], OwnerDisplayName, CreationDate,
  Score, ViewCount, Tags,
  revisions = 'site://posts/' + CAST(pid AS varchar)+'/revisions'
FROM Posts INNER JOIN firstrev_cte ON Posts.Id=pid
ORDER BY Score ASC

Enter Parameters

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