I would require your help to retrieve the selected columns from the oracle query like
SELECT col1,col2,col3+col4 as col3_4_sum,col5*col6 as col5_6_mul from tab1
;
I want to retrieve the below output as
Details
==========
Col1
Col2
Col3+Col4
Col5*Col6
Not the alias ,because this can be easily retrieved from dbms_sql.describe_columns oracle utility ,Can someone suggest some data dictionaries to retrieve this
EDIT :Different forms,but i need a final output column only
Query 2:SELECT col1,col2,col3+col4 as col3_4_sum,col5*col6 as col5_6_mul
FROM (SELECT col1,col2,col3,col4,col5,col6 FROM tab1)
Query3:WITH tab as (SELECT col1,col2,col3,col4,col5,col6 FROM tab1)
SELECT col1,col2,col3+col4 as col3_4_sum,col5*col6 as col5_6_mul
FROM tab;