Most duplicated questions


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

select top 30 concat('**',replace(str(count(*),4),' ', '  '),'**') as dups, 
 concat('', RelatedPostId) as Q,
 iif(max(q.ClosedDate) is not null, '*', '') as Closed,
 iif(max(q.DeletionDate) is not null, '*', '') as Deleted

from PostLinks
 join PostsWithDeleted q on q.Id=RelatedPostId

where LinkTypeId=3

group by RelatedPostId
order by count(*) desc

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results