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: mssql server syntax equivalent for oracle

Re: mssql server syntax equivalent for oracle

From: Jim Kennedy <kennedy-family_at_home.com>
Date: Sat, 14 Apr 2001 00:35:14 GMT
Message-ID: <6XMB6.2700$xN4.199932@news1.sttls1.wa.home.com>

 SELECT CUSTOMERID,
     nvl(CUSTNAME, "no name") as name
 FROM CUSTOMERS

--
Our new email address is kennedy-family_at_home.com
.
"Steve" <johnst_at_ncs.com> wrote in message news:3AD72D8F.B549753_at_ncs.com...

> You can use decode or the CASE statement (new in 8i not exactly sure what
> version).
>
> SELECT CASE
> WHEN custname is null THEN 'no name'
> ELSE custname END col1
> FROM customers
> /
>
> Steve J.
>
> Christian wrote:
>
> > hello,
> >
> > i'm trying to port an sql order from SQL Server to Oracle...and i have
some
> > trouble
> >
> > what would be the "Oracle" translation of the following "case" select ?
> >
> > SELECT CUSTOMERID,
> > case when CUSTNAME is null then "no name"
> > else CUSTNAME as NAME
> > end
> > FROM CUSTOMERS
> >
> > any help would be greatly appreciated
> > Christian
>
Received on Fri Apr 13 2001 - 19:35:14 CDT

Original text of this message

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