Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL 7 case-statement vs. VFP IIF
Message
From
28/03/2000 17:47:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
SQL 7 case-statement vs. VFP IIF
Miscellaneous
Thread ID:
00351724
Message ID:
00351724
Views:
92
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
Next
Reply
Map
View

Click here to load this message in the networking platform