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: update based on query results question

Re: update based on query results question

From: G Quesnel <dbaguy_ott_at_yahoo.com>
Date: 5 Jul 2005 09:39:17 -0700
Message-ID: <1120581557.354520.230120@z14g2000cwz.googlegroups.com>


What exactly is the problem ?
The update statement could look something like ... update tablez

   set col1= 'anyvalue'
where col2 in (select a.col5 from tablea a, tableb b where a.col8=b.col9);

The disctinct doesn't buy you anything.
Is your problem that you would like another select statement instead of the 'anyvalue' ? If so, it might help to know the update table structure and size, the Oracle version... BTW - if you do a search in the newsgroup for "update select" you will find plenty of examples on complex update statements. Received on Tue Jul 05 2005 - 11:39:17 CDT

Original text of this message

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