direct duplicate loops


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('',p1.PostId) AS 'First Question', CONCAT('',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

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