SELECT * FROM Tags TTT WHERE TTT.Id IN ( SELECT PTPT.TagI...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Music Fans

Q&A for music historians, critics, and fans

SELECT *
FROM Tags TTT
WHERE TTT.Id IN
(
SELECT PTPT.TagId
FROM PostTags PTPT
WHERE PTPT.PostId IN
(
        SELECT TOP 1000
            P.Id
            FROM Posts P 
              JOIN PostTags PT ON (P.Id = PT.PostId) 
              JOIN Tags T ON (PT.TagId = T.Id)
        WHERE 
        T.TagName = 'c#'
        )--   charindex(T.TagName,@TagNames) > 0
)
ORDER BY TTT.Id

Enter Parameters

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