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 question

DECODE question

From: Josue Batista <jbatista_at_abcsolutions.org>
Date: 11 Nov 2002 18:02:31 -0800
Message-ID: <f9a7c16c.0211111802.66cc397c@posting.google.com>


Given the following two columns:

ACCTD_AMOUNT_DUE_REMAINING      NOT NULL NUMBER
AMOUNT_DUE_REMAINING            NOT NULL NUMBER

What does the following statement mean?

sum(decode(NULL,'Y',acctd_amount_due_remaining,amount_due_remaining))

What is the interpretation of the "DECODE(NULL,'Y',..."?

Thanks in advance. Received on Mon Nov 11 2002 - 20:02:31 CST

Original text of this message

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