select * from ( select postid, id, creationdate, row_numb...

0

Please login or register to vote for this query.

(click on this box to dismiss)

SharePoint

Q&A for SharePoint enthusiasts

select * 
from (
select postid, id, creationdate,
row_number() over (
    partition by postid
    order by creationDate desc) as _rn
from comments
) t1
WHERe t1._rn = 1;

Enter Parameters

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