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 Problem: NEED Solution

DECODE Problem: NEED Solution

From: MADEIRA SALLY <softsense_at_home.com>
Date: Fri, 02 Jul 1999 13:54:23 GMT
Message-ID: <377CC56A.FC5BBCEF@home.com>


hi,

I am tring to use the DECODE Fucntion in a certain way and do not think I can but you all may have a solution:

I want to be able to avaluate a value in the following Manner:

DECODE(Status,NOT IN ('LC'),LoanBalance) OR DECODE(Status,<>('LC'),LoanBalance)

I could supply the If..Then in the Decode statement with all the valid Status but there are 50 of them and I just want to exclude the LC's.

I am trying not to write a function call. Can I embed If...Then statement into SQL (ie. Case Statement in MS SQL 7)

Please Need help.

Thanks
Sally Received on Fri Jul 02 1999 - 08:54:23 CDT

Original text of this message

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