How can the below SQL query written using JOIN? I'm trying to convert SQL script to Trino/Presto and this does not support Cross Apply().
select i.*,k.*
FROM dbo.[LN] i
CROSS APPLY(select top 1 * from
dbo.[LN] j
where i.vnd_nbr = j.vnd_nbr and i.cltstyle = j.cltstyle and j.compdate > i.compdate order by compdate
) k order by i.VND_NBR