Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Received / Outgoing Product
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01210081
Message ID:
01210411
Views:
16
Sorry, retracted.

>
>SELECT ;
>    CustNo, Customer, QtyIn, QtyOut, QtyIn-QtyOut As QtyDiff ;
>      FROM ( ;
>         SELECT ;
>            cs.CustNo, ;
>            cs.Customer, ;
>            SUM(si.StandsIn) AS QtyIn, ;
>            SUM(so.SerialCnt) As QtyOut ;
>               FROM Customer cs ;
>                  LEFT JOIN StandsIn si ON si.cust = cs.CustNo ;
>                  LEFT JOIN Stands_Out so ON so.cust = cs.CustNo ;
>               GROUP BY ;
>                  cs.CustNo, ;
>                  cs.Customer ;
>       ) dt1
>
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform