Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Sum
Message
From
14/05/2008 22:28:33
Neil Mc Donald
Cencom Systems P/L
The Sun, Australia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SQL Sum
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01317205
Message ID:
01317205
Views:
40
Hi,
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.
Regards N Mc Donald
Next
Reply
Map
View

Click here to load this message in the networking platform