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

Home -> Community -> Usenet -> c.d.o.tools -> Re: SQL help needed

Re: SQL help needed

From: Joachim Pense <joachim.pense_at_t-online.de>
Date: Wed, 31 Jan 2001 22:27:01 +0100
Message-ID: <959vv5$8l7$04$3@news.t-online.com>

Gert Ensing wrote:

> I have to tables :
>
> Table A and table B
>
> A
> =
> Personnr
> Name
> City
>
> B
> =
> Personnr
> City
>
> I like to fill A.City with B.city for all records in A where the
> personnr's are equal.
>

Typed, not tested:
update A set City = (select City from B where A.Personnr = B.Personnr);

Joachim Received on Wed Jan 31 2001 - 15:27:01 CST

Original text of this message

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