Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Statement
Message
From
30/09/2014 23:28:31
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
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:
01608598
Views:
58
>
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform