Q&A for Drupal developers and administrators
SELECT c.PostId AS PostId, c.Text AS CommentText FROM Comments c JOIN Posts q ON c.PostId = q.Id WHERE q.Tags LIKE '%python%' OR q.Tags LIKE '%javascript%' AND q.CreationDate >= '2023-12-01' UNION ALL SELECT c.PostId AS PostId, c.Text AS CommentText FROM Comments c JOIN Posts a ON c.PostId = a.Id JOIN Posts q ON a.ParentId = q.Id WHERE q.Tags LIKE '%python%' OR q.Tags LIKE '%javascript%' AND a.CreationDate >= '2024-01-01'