SELECT TOP 50000 * FROM (Select * FROM Posts WHERE Id IN ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Webmasters

Q&A for pro webmasters

SELECT TOP 50000 *
FROM
(Select
*
FROM Posts
WHERE Id IN (SELECT PostId
FROM (SELECT
PostId, RelatedPostId
FROM PostLinks
WHERE LinkTypeId = 3 AND PostId IN (SELECT Id FROM Posts Where PostTypeId = 1)
AND RelatedPostId IN (SELECT Id FROM Posts Where PostTypeId = 1)) a)

UNION

Select 
*
FROM Posts
WHERE Id IN (SELECT RelatedPostId
FROM (SELECT
PostId, RelatedPostId
FROM PostLinks
WHERE LinkTypeId = 3 AND PostId IN (SELECT Id FROM Posts Where PostTypeId = 1)
AND RelatedPostId IN (SELECT Id FROM Posts Where PostTypeId = 1)) b)) c
WHERE Id >= 65484708
ORDER BY Id ASC

Enter Parameters

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