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

Home -> Community -> Usenet -> c.d.o.misc -> DECODE is fine, but where is the IIF ?

DECODE is fine, but where is the IIF ?

From: Michael G. Schneider <mgs_software_at_compuserve.com>
Date: 1997/11/03
Message-ID: <01bce863$7772f480$0201dede@mum>#1/1

Beginner's question:

I just learned about the DECODE function. Very good, but what I am missing is a way to not compare against certain values, but instead being able to code a boolean condition (something like an IIF an Visual Basic). For example the following:

   DECODE(x<y, TRUE, 'less', FALSE, 'greater')

isn't possible. Or is it somehow?

Michael G. Schneider

mgs_software_at_compuserve.com Received on Mon Nov 03 1997 - 00:00:00 CST

Original text of this message

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