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 -> nvl returns strange value

nvl returns strange value

From: <durnylka_at_gazeta.pl>
Date: 14 Nov 2006 04:30:52 -0800
Message-ID: <1163507452.291103.56460@m73g2000cwd.googlegroups.com>


Hi all,

Lat us assume that a table named a_table is empty.

Is there anybody who knows why the script:

set null 0

column c57 new_value av_sum_c57

select sum(nvl(t3101_expired,0)) c57
from

        a_table
/

prompt TEST: &av_sum_c57

returns the following value

TEST: -~ But after small correction:

set null 0

column c57 new_value av_sum_c57

select nvl(sum(nvl(t3101_expired,0)),0) c57 from

        a_table
/

prompt TEST: &av_sum_c57

returns correctly:

TEST: 0 Is that a bug?

I will appreciate your help. Received on Tue Nov 14 2006 - 06:30:52 CST

Original text of this message

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