User X's comments on User Y's posts

1

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 C.CreationDate, C.Text, P.Id as [Post Link]
FROM Comments C
INNER JOIN Posts P ON C.PostId = P.Id
WHERE 
  C.UserId = ##UserIdX##
  AND P.OwnerUserId = ##UserIDY##
ORDER BY C.CreationDate ASC

Enter Parameters

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