select p.id [Post Link] , p.score , p.posttypeid , p.crea...

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 p.id [Post Link]
     , p.score
     , p.posttypeid
     , p.creationdate
     , q.score [q score]
     , q.creationdate [q creationdate] 
     , q.closeddate
     , q.answercount
from posts p
inner join posts q on q.id = coalesce(p.parentid, p.id)
where p.owneruserid = 819784
order by creationdate desc

Enter Parameters

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