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:
00977288
Views:
26
This message has been marked as a message which has helped 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?

Try
NVL(SUM(...), 0))
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform