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: Oracle8i and nullif

Re: Oracle8i and nullif

From: Michel Cadot <micadot{at}altern{dot}org>
Date: Wed, 5 Oct 2005 16:43:17 +0200
Message-ID: <4343e65d$0$7922$636a15ce@news.free.fr>

"Ralph" <nurfuerschrott_at_gmx.de> a écrit dans le message de news: 1128522631.634681.321940_at_g43g2000cwa.googlegroups.com...
| Hi @ll,
|
| is there anything like the nullif-function in oracle8i ? It can be a
| more complex construction, the only need is, that it can be used in the
| fieldlist.
|
| select
| number,nvl2(nullif(to_char(birthday,'YYYY'),to_char(welcomedat,'YYYY')),'Yes','No')
| from customer
|
| This works fine in 9i (not regarding the senseless columns) but I can't
| find anything similar in 8i...
|
| Any ideas?
|
| Greets Ralph
|

decode (to_char(birthday,'YYYY'), to_char(welcomedat,'YYYY'), NULL , to_char(birthday,'YYYY'))

http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a85397/expressi.htm#1016155

Regards
Michel Cadot Received on Wed Oct 05 2005 - 09:43:17 CDT

Original text of this message

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