select * from comments z left join (select c.postid from ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Webmasters

Q&A for pro webmasters

select *
from comments z
  left join 
(select c.postid
      from comments c
           left join comments cb
                  on c.postid = cb.postid
                 and c.creationdate < cb.creationdate
     where cb.creationdate is null
     ) s
     on (z.postid = s.postid)
     where s.postid is null
     ;

Enter Parameters

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