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: Copying Data

Re: Copying Data

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Mon, 03 Nov 2003 08:29:57 -0800
Message-ID: <1067877017.205904@yasure>


Mumblez wrote:

>sorry what would be represented by c
>
>
>
>"andrewst" <member14183_at_dbforums.com> wrote in message
>news:3552561.1067864308_at_dbforums.com...
>
>
>>Originally posted by Mumblez
>>
>>
>>
>>>how can you copy the certain data from one table into another
>>>
>>>
>>>ie, you create another table but 3 columns used are found in
>>>others tables,
>>>
>>>
>>>how would you populate that table with the contents of the tuples
>>>from the
>>>
>>>
>>>others
>>>
>>>
>>>By the way thanks for the help so far
>>>
>>>
>>You mean like this?
>>
>>
>>
>>insert into new_table( a, b )
>>
>>select t1.a, t2.b
>>
>>from t1, t2
>>
>>where t1.c = t2.c;
>>
>>
>>--
>>Posted via http://dbforums.com
>>
>>

'c' stands for some column in table 1 and some column in table 2 that provide a join.

-- 
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Mon Nov 03 2003 - 10:29:57 CST

Original text of this message

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