Q&A for users of Linux, FreeBSD and other Un*x-like operating systems
DECLARE @UserId int = ##UserId## SELECT pl.PostId AS [Post Link] FROM PostLinks pl JOIN Posts q ON pl.RelatedPostId = q.Id WHERE pl.LinkTypeId = 3 AND q.OwnerUserId = @UserId