Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Avoiding NULL with SUM
Message
 
To
14/01/2005 13:03:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00977283
Message ID:
00977285
Views:
40
This message has been marked as the solution to the initial question of the thread.
>With VFP 9, if you SUM a column and the where clause doesn't return any data, you end up with NULL. How can I obtain 0?

What About:
SUM(NVL(Field,0))
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform