Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: I can't believe I can't use IIF anymore!?!
SELECT DECODE(SIGN(score-400), 1, 'SomeoneElse', 0, 'Patrick', -1,
'Patrick') as msg FROM DUAL;
will work
sample:
SQLWKS> SELECT DECODE(SIGN(399-400), 1, 'SomeoneElse', 0, 'Patrick', -1,
'Patrick') as msg FROM DUAL;
MSG
Hakan
Patrick Joyal wrote:
>
> you know, like :
>
> select IIF (Score >400, 'Congratulations!', 'Loser!') as Message ;
>
> to my surprise, it doesn't work in Oracle
Received on Wed Feb 23 2000 - 16:09:52 CST
![]() |
![]() |