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

Click here to load this message in the networking platform