I have the following query, which works in Sybase, and I need help to rewrite it for Oracle. I am new to Oracle.
update table1
set col1 = (select sum(col3) from table2 t2 where t2.id = t1.id and t2.col <> 'on')
from table1 t1
where t1.id > 1 and t1.col5 in (12,13) and exists
(select id from table2 t2 where t2.id = t1.id and t2.col <> 'on' and col3 > 0)
When I tried to execute in Oracle I am getting missing expression error