Paul
04/28/2022, 10:06 AMselect id, name, "categoryId", a."createdAt" from forum_post fp
inner join (select "postId", max("createdAt") as "createdAt" from forum_post_reply group by "postId") a on a."postId" = fp.id
order by a."createdAt" desc;
ThanksPaul
04/29/2022, 10:41 AM