Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Statement
Message
De
30/09/2014 23:28:31
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01608587
Message ID:
01608598
Vues:
56
>
>select PCID, max(qty) AS Qty, CAST(sum(iif(available, 1, 0)) AS I) as NO_AVAIL,  CAST(sum(iif(available, 0, 1)) AS I) as NO_NOTAVAIL ;
>from myTable ;
>GROUP BY PCId
Good stuff.

I continued this in Message #1608597 over in the SQL area (I realize this was a VFP question), just to talk about conditional aggregation a little more.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform