Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: case when ... then expression

Re: case when ... then expression

From: OK <j_p_x_at_hotmail.com>
Date: 27 Jun 2001 11:29:46 -0700
Message-ID: <8daca8eb.0106271029.697bd12b@posting.google.com>

sign(x-y) give out 1, 0, -1; so you can easily have workaround with <= in decode.

"rob" <rob_at_dsdelft.nl> wrote in message news:<9hbvup$g93$1_at_news.tudelft.nl>...
> > decode(sign (x-y),1,"x is more than y","x is less than or equal to y")
> That's what I use in cases likes this. But no <= in there. I checked the
> manuals on decode and was worrying I missed something.
>
> Regards,
> Rob.
Received on Wed Jun 27 2001 - 13:29:46 CDT

Original text of this message

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