Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Similar to alias, but to be reusable in all clauses of SQL: SELECT
DA Morgan wrote:
> Use a WITH query.
I tried to use it. But, it does not seem to work for me. I tried for something similar to the following:
The following error is reported:
Based on a short reading from
http://www.dba-oracle.com/t_sql99_with_clause.htm, it looks like it is
must to use atleast one aggregate function (E.g. sum()) at the WITH
clause. My SQL statement might be failing due to this constraint. If
yes, are there any other ways of fulfilling my requirement?
Received on Thu Jan 18 2007 - 09:58:57 CST
![]() |
![]() |