Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

get null from sum () if a null value exists

658593Mar 9 2009 — edited Mar 9 2009
Hello to everybody,

does anyone know a trick to get NULL from the sum() function if one of the values is NULL.

E.g.

Take table 'TEST'

select * from test

NO
-----
1
19



4 rows selected.

select sum(no) from test;

SUM(NO)
-----
20
1 row selected.

Is there a possibilty to get NULL as result?

Uwe

Edited by: GrumbleDuke on 09.03.2009 15:36

Edited by: GrumbleDuke on 09.03.2009 15:40
This post has been answered by Frank Kulash on Mar 9 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 6 2009
Added on Mar 9 2009
6 comments
1,218 views