Comments by one user on another user's posts


Please login or register to vote for this query.

(click on this box to dismiss)


Q&A for professionals and students of engineering

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

Enter Parameters

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