Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> SQL: selecting with column position #?

SQL: selecting with column position #?

From: <jinhwa68_at_my-deja.com>
Date: Fri, 25 Aug 2000 00:59:58 GMT
Message-ID: <8o4ge3$10j$1@nnrp1.deja.com>

I want to use nested SELECT, but it's somewhat bothersome naming the inner columns like..

 SELECT column1, thename from (SELECT column1,

    SUM(column1) thename from t1 group by column1) ;

Is there any way to replace "thename" with something referring the column position, like COLUMN(2) ? Thanx in advance

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Thu Aug 24 2000 - 19:59:58 CDT

Original text of this message

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