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

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL UPDATE of one table based on values of another table -- is it possible?

Re: SQL UPDATE of one table based on values of another table -- is it possible?

From: Greg Stark <greg-spare-1_at_mit.edu>
Date: Thu, 18 Nov 1999 09:24:02 GMT
Message-ID: <87d7t8kva5.fsf@HSE-Montreal-ppp19485.qc.sympatico.ca>

there are various ways of doing this, the obvious way is:

update t1 set class = (select class from t2 where t1.animal = t2.animal)

--
greg Received on Thu Nov 18 1999 - 03:24:02 CST

Original text of this message

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