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: case ansi 92

Re: case ansi 92

From: Emmanuel <zouzou_at_yahoo.com>
Date: 19 Jan 2000 15:37:45 GMT
Message-ID: <01bf629b$f1cd9be0$3601017e@EHM.cirra.fr>


I have never heard of that SQL syntax before.

I think this will suit :

SELECT
  DECODE(t.c,'xx',t.a,t.b)
FROM
 t;

Regards

Emmanuel

rrenzo_at_my-deja.com a écrit dans l'article <864k4p$6v3$1_at_nnrp1.deja.com>...
> It is not possible to use this ANSI 92 clause
>
> SELECT
> CASE
> WHEN t.c='xx' THEN t.a ELSE t.b
> END
> FROM t
>
> Oracle does conform to ANSI 92 rules, don't they?
> How can I rewrite this query in a working version?
>
> Greetings,
> Renzo.
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>
Received on Wed Jan 19 2000 - 09:37:45 CST

Original text of this message

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