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

update based on query results question

From: Justin <nospam_at_insightbb.com>
Date: Tue, 05 Jul 2005 16:05:34 GMT
Message-ID: <slrndclbih.cgd.nospam@debian.dns2go.com>


I have an update statement that updates 40 rows based on the results of a select query. The select query when run by itself returns about 250 rows.

I am trying to set the value of another column in a table based on the query results of the select statement.

So, basically, it's

update <table> set <columnb> where <columna> in (select distinct a.column from tablea a, tableb b where a.column=b.column);

I've probably got some stupid mistake there... Received on Tue Jul 05 2005 - 11:05:34 CDT

Original text of this message

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