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: mistake, error, or something else ?

Re: mistake, error, or something else ?

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Mon, 27 Oct 2003 06:20:34 -0800
Message-ID: <1067264451.776866@yasure>


mbrugo_at_despammed.com wrote:

>Hi people.
>I've this query:
>
>select a,b,c from t1
>where c in (select distinct c from t2);
>
>
>this query run succesfully BUT:
>
>select distinct c from t2
>give me: ora-904 Invalid column name.
>
>WHY ????
>
>i've no synonym or other objects
>
>t1 has 3 columns, a,b,c
>t2 has 2 columns d,e
>
>Tia
>
>Mike
>
>

Which part of "t2 has 2 columns d,e" would lead you to believe that "select distinct c from t2" would be successful?

-- 
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 Oct 27 2003 - 08:20:34 CST

Original text of this message

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