Posts by Tag

0

Please login or register to vote for this query.

(click on this box to dismiss)

DevOps Meta

Q&A about the site for software engineers working on automated testing, continuous delivery, service integration and monitoring, and building SDLC infrastructure

SELECT Posts.*, 'RDS' AS Service, 'Post' AS Classification
FROM TAGS INNER JOIN PostTags ON PostTags.TagId = Tags.id 
          INNER JOIN Posts ON Posts.Id = PostTags.PostId
WHERE TagName='aws-rds'


UNION

SELECT Posts.*, 'RDS' AS Service, 'Answer' AS Classification
FROM TAGS INNER JOIN PostTags ON PostTags.TagId = Tags.id 
          INNER JOIN Posts ON Posts.ParentId = PostTags.PostId
WHERE TagName='aws-rds'


/*
--UNION NOT POSSIBLE

SELECT *
FROM Comments
WHERE PostId IN (SELECT Posts.Id
FROM TAGS INNER JOIN PostTags ON PostTags.TagId = Tags.id 
    INNER JOIN Posts ON Posts.Id = PostTags.PostId
WHERE TagName='aws-rds'


UNION

SELECT Posts.Id
FROM TAGS INNER JOIN PostTags ON PostTags.TagId = Tags.id 
    INNER JOIN Posts ON Posts.ParentId = PostTags.PostId
    WHERE TagName='aws-rds')

Enter Parameters

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