DECLARE @StartDate datetime = '2013-09-30 00:00:00.000' s...


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

DECLARE @StartDate datetime = '2013-09-30 00:00:00.000'
select p.Id as [Post Link], p.Score, p.ViewCount, p.CreationDate
from Posts p
INNER JOIN PostTags pt ON pt.PostId = p.Id
INNER JOIN Tags t ON t.Id = pt.TagId
WHERE t.TagName in ('prism', 'prism-2', 'prism-4')
and p.ParentId is null 
and p.AcceptedAnswerId is null
AND p.CreationDate > @StartDate
AND NOT EXISTS (Select * From Posts ans Where ans.ParentId = p.Id)

order by CreationDate desc, Score desc

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results