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: Column alias- Can't do this?

Re: Column alias- Can't do this?

From: Samuel Leung <m2624526_at_netvigator.com>
Date: Tue, 24 Aug 1999 17:39:21 +0800
Message-ID: <7pto2q$vao$1@imsp009a.netvigator.com>


There are two problem in this query:

  1. alias cannot be used in where clause
  2. I think you have to use HAVING clause for group function

Antonio Pascual wrote in message <7ptk3e$5ku_at_nntpa.cb.lucent.com>...
>SQL> r
> 1 select data, avg(is_number(value)) as col1
> 2 from apatest
> 3 where col1 is not null
> 4* group by dato
>where col1 is not null
> *
>ERROR at line 3:
>ORA-00904: invalid column name
>
>I Can't a column alias in the where clause?
>
>regards,
>
>Antonio.
>
>
Received on Tue Aug 24 1999 - 04:39:21 CDT

Original text of this message

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