UPDATE CONVERTED T1
SET PARENTID = (SELECT ID FROM
CONVERTED T2 WHERE T2.ID < T1.ID
AND T1.PREVOBJNUM = T2.OBID
AND ROWNUM = 1
ORDER BY ID DESC)
Gives me the following error
L Error: ORA-00907: missing right parenthesis
00907. 00000 - "missing right parenthesis"
If I remove the ORDER BY it works. Any idea how to fix it?