Top Post with accepted answers

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 TOP(500)  p.Id, p.Title, p.Body
FROM Posts p
JOIN PostTags pt ON p.Id = pt.PostId
JOIN Tags t ON pt.TagId = t.Id
JOIN Posts a ON p.AcceptedAnswerId = a.Id
WHERE (t.TagName = ##TagName:string##) AND
(p.AcceptedAnswerId IS NOT NULL) AND
(p.CreationDate >= '##Date1?2016-01-01##') AND
(p.CreationDate <= '##Date2?2019-12-31##')

Enter Parameters

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