Find linked posts in my posts

0

Please login or register to vote for this query.

(click on this box to dismiss)

Science Fiction and Fantasy

Q&A for science fiction and fantasy enthusiasts

SELECT
  p.Id, p.CreationDate, p.Score, p.Id AS [Post Link], l.RelatedPostId AS [Post Link]
  FROM Posts as p
    JOIN PostLinks as l ON p.Id = l.PostId
  WHERE --PostTypeId = 2 -- answers
    OwnerUserId = ##UserId##
    AND (
             Body LIKE '%/a/%'
          OR Body LIKE '%/q/%'
        )

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results