Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL 7 case-statement vs. VFP IIF
Message
De
28/03/2000 17:47:19
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
SQL 7 case-statement vs. VFP IIF
Divers
Thread ID:
00351724
Message ID:
00351724
Vues:
93
The following statement is in my VFP code for SPT Query:

SqlSelect =
"Select Sum(IIf(ArAudit.AUlAdjRec, 0.0000 ,ArAudit.AUyAmt)) As Receipts,
Sum(IIf(ArAudit.AUlAdjRec, ArAudit.AUyAmt, 0.0000)) As Adjtmnts

From ArAudit Inner Join ArCharge Inner Join LookUp On ArCharge.CHilookUp = Lookup.lOiID On ArAudit.AuiCharge = ArCharge.ChiId

Group By AUiCharge"

How can I convert these 'Sum(IIf ...)' statements to T-SQL for SQL Server 7 so that it will also work in VFP?

TIA,

Ed
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform