Find duplicate of a specific post

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu

Q&A for Ubuntu users and developers

SELECT
  PostLinks.PostId as [Post Link]
FROM
  PostLinks
WHERE
  PostLinks.LinkTypeId = 3 AND
  (SELECT
     Posts.Id
   FROM
     Posts
   WHERE
     Posts.Id = PostLinks.PostId
     ) IS NOT NULL AND
  (SELECT
     Posts.Id
   FROM
     Posts
   WHERE
     Posts.Id = PostLinks.RelatedPostId
     ) = ##ID##
GROUP BY PostLinks.PostId
ORDER BY PostLinks.PostId

Enter Parameters

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