Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Newbie Question
Message
De
28/02/2006 16:36:59
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
28/02/2006 16:23:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Divers
Thread ID:
01100105
Message ID:
01100141
Vues:
16
>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, 
....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform