Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Sum
Message
 
 
À
14/05/2008 22:28:33
Neil Mc Donald
Cencom Systems P/L
The Sun, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01317205
Message ID:
01317207
Vues:
7
In VFP you'll have to use IIF() or ICASE(). No compatibility, I'm afraid.

> Would the following TSQL work in VFP:-
>
>SUM(case when invh.invdate between lcMonStart AND lcMonEnd then gross else 0 end) as MTDAmount
>
>if not is SUM(IIF ....) the only way out, I am looking for something that is VFP and MSSQL compatible.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform