Harry Potter vs Star Wars

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT 
t.TagName, q.CreationDate, q.Id
FROM Posts AS q 
JOIN PostTags AS c ON q.Id = c.PostId 
JOIN Tags as t ON c.TagId = t.Id
WHERE 
q.PostTypeId = 1 AND
t.TagName IN ('harry-potter', 'star-wars')
ORDER BY q.Id
;

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results