Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Different behavior of COUNT(*) and SUM()
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01359217
Message ID:
01359229
Views:
26
This message has been marked as a message which has helped to the initial question of the thread.
Yes it's ANSI SQL standard behavior for SUM() and alike functions in VFP9 but previous VFP versions did not support it. See SET ENGINEBEHAVIOR for details.

>
>If I select records that don't satisfy my criteria I get 0 for count(*), but NULL for sum(IIF(myCondition, 1,0))
>
>Is this a documented behavior?
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform