Q&A for scientists using computers to solve scientific problems
SELECT Q.ID AS [Post Link] FROM dbo.Posts Q JOIN dbo.PostLinks PL ON Q.Id = PL.PostId JOIN dbo.Posts D ON PL.RelatedPostId = D.Id WHERE D.Id = ##PostID:int## AND PL.LinkTypeID = 3