Q&A for ebook publishers and readers
-- Fetch questions and answers with the "gdpr" tag SELECT p.Id AS [PostId], p.PostTypeId, p.ParentId AS [QuestionId], -- Null for questions, populated for answers q.Id AS [QuestionId], q.Title AS [QuestionTitle], p.Body AS [PostBody], p.CreationDate, p.Score, p.OwnerUserId FROM Posts p INNER JOIN PostTags pt ON p.Id = pt.PostId INNER JOIN Tags t ON pt.TagId = t.Id INNER JOIN Posts q ON p.ParentId = q.Id OR p.Id = q.Id WHERE t.TagName = 'gdpr' ORDER BY p.CreationDate DESC