Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> update with multi table join
When the subquery finds nothing the id_bjn is updated with null. How
can I avoid updating records when there is no match is found in the
subquery?
update w_rg101 w
set id_bjn = ( select c.id_destination from bjn a, bjn_destination c
where w.id_region_tw = a.id_region and w.id_unit_tw = a.id_unit and w.id_mail_tw = a.id_mail)
![]() |
![]() |