Comments by one user on another user's posts

0

Please login or register to vote for this query.

(click on this box to dismiss)

Computational Science

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

Enter Parameters

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