Q&A for scientists using computers to solve scientific problems
declare @CommentatorId int = ##CommentatorId## declare @PosterId int = ##PosterId## select c.Text, c.PostId as [Post Link] from Comments c join Posts p on (c.PostId = p.Id) where c.UserId = @CommentatorId and p.OwnerUserId = @PosterId