Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL update query - help please!
Try this:
update table_a a set
a.total = ( select sum(b.value)+sum(c.value)+max(d.sub_total)
from table_b b,table_c c, table_a d where b.id=a.id and c.id=a.id and d.id=a.id);