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

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL question

Re: SQL question

From: Roger Stapley <rstapley_at_uk.oracle.com>
Date: Tue, 16 Nov 1999 10:54:05 +0000
Message-ID: <383137CD.5744BE6B@uk.oracle.com>


SELECT DECODE(gender, 'F', 'Female', 'Male') FROM tablea;

marcus_chan_at_my-deja.com wrote:
>
> Hello,
>
> Is it possible to write something like this in PURE sql code .
>
> select case when gender = 'F' then 'Female'
> else then 'Male'
> end case
> from TABLEA
>
> thanks
> marcus
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.


Received on Tue Nov 16 1999 - 04:54:05 CST

Original text of this message

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