Questions with tag1, without tag2, containing a specific phrase

2

Please login or register to vote for this query.

(click on this box to dismiss)

Open Data

Q&A for developers and researchers interested in open data

SELECT q.Id as [Post Link], q.Tags, q.CreationDate, q.LastActivityDate
FROM Posts q INNER JOIN PostTags pt ON q.Id=pt.PostId
INNER JOIN Tags t ON t.id = pt.TagId
WHERE t.TagName=##tag1:string?geometry##
  AND NOT(q.Tags LIKE '%<##tag2?mg.metric-geometry##>%')
  AND (q.Body LIKE '%##text?volume##%' COLLATE Latin1_General_CI_AI)
ORDER BY q.CreationDate DESC
---simply using "q.Tags LIKE '%<##Tagname##>%'" leads to some false positives
---for example, searching for geometry gives also the questions tagged geometry-of-numbers

Enter Parameters

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