Most duplicated questions in a given tag

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 count(*) as dups, 
 RelatedPostId as [Post Link],
 case when q.ClosedDate is not null then '*' else '' end as Closed,
 q.Tags

from PostLinks
 join Posts q on q.Id=RelatedPostId
 join PostTags p on p.PostId=q.Id
 join Tags t on p.TagId=t.id 

where LinkTypeId=3
and ( q.Tags LIKE '%sql%' )
and not (q.Tags LIKE '%mysql%')

group by RelatedPostId, q.ClosedDate, q.Tags
order by count(*) desc

Enter Parameters

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