Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Statement
Message
De
30/09/2014 17:22:24
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
SQL Statement
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:
01608587
Vues:
57
I have the following table structure:
PCID                     QTY         BARCODE           AVAILABLE

3U60LB987              4           cIV3V00TCJ42         .T.
3U60LB987              4           cIV3V00TCJ43         .T.
3U60LB987              4           cIV3V00TCJ44         .T.
3U60LB987              4           cIV3V00TCJ45         .T.
3U60LB987              4           cIV3V00TCJ46         .F.
3V60K0MGW           1           cIV3V60K1GA0       .T.
I would like the output to look like:
PCID                     QTY          NO_AVAIL        NO_NOTAVAIL
3U60LB987              4                   4                        1
3V60K0MGW           1                   1                        0
Can this be done with an sql statement?

Thanks in advance,
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform