with Q as (select * from Posts where OwnerUserId=14 and P...

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

with Q as (select * from Posts where OwnerUserId=14 and PostTypeId=1),
     A as (select * from Posts where OwnerUserId=14 and PostTypeId=2)
     
select Q.Id as [Post Link], A.Id as AnswerId
from Q full outer join A on A.ParentId=Q.Id

Enter Parameters

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