direct duplicate loops

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 CONCAT('https://stackoverflow.com/q/',p1.PostId) AS 'First Question', CONCAT('https://stackoverflow.com/q/',p2.PostId) AS 'Second Question'
FROM PostLinks p1, PostLinks p2
WHERE p1.LinkTypeId=3
  AND p2.LinkTypeId=3
  AND p1.PostId=p2.RelatedPostId
  AND p2.PostId=p1.RelatedPostId

Enter Parameters

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