Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Avoiding NULL with SUM
Message
From
14/01/2005 13:08:09
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00977283
Message ID:
00977287
Views:
54
>>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))
>
This still returns NULL. Also, I am looking for a generic setting that could be new in VFP 9 as I don't want to adjust all that everywhere in the code.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform