Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: ORA-00918: column ambiguously defined
On Feb 20, 8:33 am, timothy.h..._at_gmail.com wrote:
> Hi,
>
> I am getting the above error when I try and run the query below on
>
> select com.name
> , curr.quantity
> , prev.quantity
> from ( select count(*) as quantity
> , a.tab_urn
Would the second and third columns not be named the same (ie
QUANTITY).
How about providing a column alias, as in ...
select com.name,curr.quantity "Curr_Quantity", prev.quantity
"Prev_Quantity" from ...
Hth Received on Fri Feb 23 2007 - 14:05:00 CST