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')