Rhys666
Programmer
- May 20, 2003
- 1,106
NULL values are ignored when using SUM in Sql Server.
As my brain is failing to register what I need at the moment, what have people found as the best way to SUM a field and return a NULL result when there is a NULL value in those being SUM'd?
Cheers!
Rhys
""Vampireware /n/, a project, capable of sucking the lifeblood out of anyone unfortunate enough to be assigned to it, which never actually sees the light of day, but nonetheless refuses to die."
My Home
As my brain is failing to register what I need at the moment, what have people found as the best way to SUM a field and return a NULL result when there is a NULL value in those being SUM'd?
Cheers!
Rhys
""Vampireware /n/, a project, capable of sucking the lifeblood out of anyone unfortunate enough to be assigned to it, which never actually sees the light of day, but nonetheless refuses to die."
My Home