Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Statement
Message
From
30/09/2014 17:22:24
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SQL Statement
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01608587
Message ID:
01608587
Views:
56
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,
Next
Reply
Map
View

Click here to load this message in the networking platform