List of questions on P.SE with score 0<score<10 and with two tags! (finally works! not really)

0

Please login or register to vote for this query.

(click on this box to dismiss)

I read too many tutorials for this tbh Update 6:58pm UTC: Is not working right now, trying to get questions tagged with logical-deduction and those with grid-deduction

Drupal Answers

Q&A for Drupal developers and administrators

SELECT p.Title, p.Id, p.Score, p.ViewCount, p.OwnerDisplayName, p.Tags
FROM Posts p
JOIN Users u ON p.OwnerUserId = u.Id
INNER JOIN PostTags pt ON p.Id=pt.PostId
INNER JOIN Tags t ON t.id = pt.TagId
INNER JOIN PostTags pt1 ON p.Id=pt1.PostId
INNER JOIN Tags t1 ON t1.Id = pt1.TagId
WHERE p.PostTypeId = 1
And (t.TagName=##tagName:string?logical-deduction##)
And p.Score <=10
And p.Score >=0
And p.AcceptedAnswerId is null
OR p.PostTypeId = 1
And (t1.TagName=##tagName1:string?grid-deduction##)
And p.Score <=10
And p.Score >=0
And p.AcceptedAnswerId is null
ORDER BY p.Score DESC

Enter Parameters

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