Locate old dupe suggestions where the flag has timed out
Q&A for anime and manga fans
-- Find suggested duplicates that haven't led to question closure in a tag -- Locate old dupe suggestions where the flag has timed out DECLARE @Tag varchar(100) = '##Tag##' select p.Id as [Post Link], p.CreationDate from Comments c join Posts p on c.PostId = p.Id join PostTags pt on pt.PostId = p.Id join Tags t on t.Id = pt.TagId where c.Text LIKE '%possible duplicate%' and p.ClosedDate is null and p.PostTypeId = 1 and t.TagName = @Tag order by p.Id