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: I am looking for substitution of CASE or IF in SELECT

Re: I am looking for substitution of CASE or IF in SELECT

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Tue, 15 Aug 2000 06:25:08 +0100
Message-ID: <966317709.27555.1.nnrp-10.9e984b29@news.demon.co.uk>

Oracle does have a CASE inSQL,
but only in version 8.1.6; can you
switch to that version ?

--

Jonathan Lewis
Yet another Oracle-related web site:  http://www.jlcomp.demon.co.uk

Michal Kulakovsky wrote in message <3997d875.0_at_news.cvut.cz>...

>I am migrating from MS SQL and there I used CASE in SELECT
>
>like this
>
>SELECT CASE WHEN
> datepart(wk,getdate()) >= $S1 THEN '1'
> ELSE '0'
> END "ok" from table1;
>
>Does Oracle support something like MS-SQL CASE in SELECT ?
>
>Can anyone help me ?
>
>Thank you.
Received on Tue Aug 15 2000 - 00:25:08 CDT

Original text of this message

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