Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Null Value when adding data

Status
Not open for further replies.

FrankW

Programmer
May 1, 2002
4
0
0
US
Question, is there a way to sum values in columns when there are some with null values in them? I have tried this and my output is null as a sum when null values are in certain cells I am sum or adding up? Does anyone know how I could get around this? I am not able to turn off null values in these certain fields within the table without an error. Is there a way I can get SQL to just add the colums with numeric data in it and omit the null values?

Any help would be appreciated.

Thank you,

Frank
 
hi frank ,

just use NVL() function to to operations on NULL values - - here u can give default values to these NULL values also

all the best.
pravin.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top