Answer from A containing B with comment from Y

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select
  top 500
  Id as [Post Link]
from
  Posts p
where
  p.PostTypeId = 2 -- answer
and
  p.OwnerUserId = ##AnswerAuthor:int##
and
  p.Body like '%' + ##AnswerText:string## + '%'
and exists (
  select
    1
  from
    Comments c
  where
    c.PostId = p.Id
  and
    c.UserId = ##CommentAuthor:int##
)

Enter Parameters

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