update (select b.b2 from b where b.b1 = a.a1) set a2 = b2
Ok, now correct.
Can you propose something quicker now ?
<sybrandb@yahoo .comwrote in message
news:a1d154f4.0 307202352.6fd71 3ec@posting.goo gle.com...
news:<ijHSa.769 $1I5.141057@new s20.bellglobal. com>...
>
Switch to a different database. Your query is incorrect too.
>
Sybrand Bakker
Senior Oracle DBA
Ok, now correct.
Can you propose something quicker now ?
<sybrandb@yahoo .comwrote in message
news:a1d154f4.0 307202352.6fd71 3ec@posting.goo gle.com...
"Julia Sats" <julia.sats@sym patico.cawrote in message
I have two tables A(a1 number, a2 number) and B(b1 number, b2 number)
a.a1 and b.b1 are join columns .
I need to update values of a2 by values of b2.
we can use such update quere
update A set a2 = (select b.b2 from b where b.b1 = a.a1)
Can you propose something quicker ?
Thanks
a.a1 and b.b1 are join columns .
I need to update values of a2 by values of b2.
we can use such update quere
update A set a2 = (select b.b2 from b where b.b1 = a.a1)
Can you propose something quicker ?
Thanks
Switch to a different database. Your query is incorrect too.
>
Sybrand Bakker
Senior Oracle DBA
Comment