Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Join Update Query?!!!

Re: Join Update Query?!!!

From: Tina Tran <tinat_at_sonica.com>
Date: 1997/11/04
Message-ID: <01bce943$c6560ca0$2aaeb6cc@dino>#1/1

Have you tried

update table_a set field_id = 'xxx'
where field_id = 'old-value'
and exists (select 'x' from table_b

            where table_b.field_b = table_a.field_a);

James Wj Snyder <snyderj_at_wellsfargo.com> wrote in article <01bce8b1$1976c200$5a4e9797_at_snyderj.wellsfargo.com>...
> Hello peoples,
>
> Again Oracle support has been no help <sigh> Anywho...
>
> I need to do an update query based on crieteria from a join. Any help
> would be appreicated.
>
> Two tables:
> TABLE_A
> TABLE_B
>
> Update TABLE_A set FIELD_ID = '0001AA' where
> TABLE_A.FIELD_A = TABLE_B.FIELD_B and where
> TABLE_A.FIELD_ID = '0001';
>
>
> Anything?
>
> --
> Peace,
> James Wj Snyder
> Wells Fargo Bank
>
Received on Tue Nov 04 1997 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US