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: How to write

Re: How to write

From: sybrandb <sybrandb_at_gmail.com>
Date: Mon, 12 Nov 2007 03:16:59 -0800
Message-ID: <1194866219.346990.104650@d55g2000hsg.googlegroups.com>


On Nov 12, 12:00 pm, pal <jayadevpal..._at_gmail.com> wrote:
> Hi guys ,
> I'm new to oracle and i have a doubt,please help me out...
>
> SELECT emp_master.emp_code,
> emp_master.f_name || emp_master.l_name as empname ,
> IS NULL(key_person, 'N') as NotInRoster FROM emp_master ;
>
> while i excecute this query in oracle this is giving an error like
> "Missing expression".
>
> I belive that error is in this line "IS NULL(key_person, 'N') as
> NotInRoster"
>
> can any one tell me how to use IS null in Oracle..
>
> thanx and regards
>
> paleri

is null is not a function in Oracle, it is a predicate only.

You need to replace is null(key_person,'N') by nvl(key_person, 'N')

--
Sybrand Bakker
Sneior Oracle DBA
Received on Mon Nov 12 2007 - 05:16:59 CST

Original text of this message

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