Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: case ansi 92
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
![]() |
![]() |