Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Newbie Question
Message
From
28/02/2006 16:36:59
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
To
28/02/2006 16:23:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Miscellaneous
Thread ID:
01100105
Message ID:
01100141
Views:
18
>I'm using VFP to connect to an SQL database via ODBC so I can't use the IIF() because it's not understood by the ODBC connect.

Hi Robert, I don't know if it's SQL6.5 compatible but this should work:
Sum(Case When Month(SomeDate) = 1 Then Amount Else 0000 End) As Jan, 
....
Previous
Reply
Map
View

Click here to load this message in the networking platform