| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Mailing Lists -> Oracle-L -> QUERY
Hi
Any advice are welcome.
update main_test a
set a.directions =(select b.access1 from trail_main b
where b.trail_name = a.trail_name
     and b.trail_code = a.trail_code)
This is updating 6595 rows.
update main_test a
set a.directions = (select access1 from trail_main b
                     where a.trail_name = b.trail_name
                       and a.trail_code = b.trail_code )
where a.trail_id = ANY (select a.trail_id from
                                vw_trail_main_test a, trail_main b
                         where a.trail_name = b.trail_name and a.trail_code 
= b.trail_code )
     and b.trail_code = a.trail_code
It returns 2599 rows.
Wondering what is wrong?
thx
![]()  | 
![]()  |