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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: SQL Query

Re: SQL Query

From: Mikhail Ivanov <mivanov_at_tdera.ru>
Date: Thu, 03 Oct 2002 00:48:24 -0800
Message-ID: <F001.004DEF23.20021003004824@fatcity.com>


3 2002 12:03, :
> I have a table test((NAME VARCHAR2(10),AGE NUMBER(2));
>
> data of the table is
>
> NAME AGE
> ---------- ---------
> ANAND 1
> BALU 2
> CHANDU 3
> DAVID 4
>
>
> I want a query which give me the result as
>
> NAME AGE
> ---------- ---------
> ANAND 4
> BALU 3
> CHANDU 2
> DAVID 1
>

select NAME, 5-AGE AGE from test;
Are you want that or "general" revers of AGE ?

> Can any body pl. help me.
>
> Anand Kumar
> ITW Signode India Ltd

-- 
 
 
y筅~'"jS
kڝاzN
nu楊w{Zx
I_at_ND
Received on Thu Oct 03 2002 - 03:48:24 CDT

Original text of this message

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