Find suggested duplicates that haven't led to question closure in a tag

0

Please login or register to vote for this query.

(click on this box to dismiss)

Locate old dupe suggestions where the flag has timed out

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

-- 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

Enter Parameters

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