Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Different behavior of COUNT(*) and SUM()
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01359217
Message ID:
01359229
Vues:
24
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform