Where have we met before?

8

Please login or register to vote for this query.

(click on this box to dismiss)

Look for all questions where two users have contributed with any of question, answer or comment

Stack Overflow Meta en español

Preguntas y respuestas sobre el sitio para programadores y profesionales de la informática

-- Look for all questions where two users have both contributed
-- in the form of question, answer or comment

select coalesce(parentid,id) 
from posts 
where owneruserid=##UserA## --1396
      or exists(select * from comments where postid=posts.id and userid=##UserA##)
intersect
select coalesce(parentid,id) 
from posts 
where owneruserid=##UserB## --807
      or exists(select * from comments where postid=posts.id and userid=##UserB##)
order by coalesce(parentid,id) desc

Enter Parameters

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