select p1.ParentId as qid, p1.Id as aid, p2.Title, p1.sco...

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

select p1.ParentId as qid, p1.Id as aid, p2.Title, p1.score as ascore, p2.score as qscore
from posts p1
join posts p2 on p1.ParentId = p2.Id
where p1.score > 200 and p1.posttypeid = 2
order by p1.score

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results