Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding quantity in free table
Message
From
19/12/2006 12:26:29
 
 
To
19/12/2006 10:04:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01178051
Message ID:
01178906
Views:
14
Hi Ed,

Thanks again for all your help...

Your code is correct. The data on my table are doubled.
SELECT ;
 vendorID, ;
 vendorname AS VenName, ;
 cnt(*) as NumRect, ;
 sum(qtyrecv) as RecvQty, ;
 sum(qtyrej) as RejQty, ; 
 Round(100*SUM(qtyrej)/SUM(qtyrecv),2) as PerRej, ;
 0 as OnTime ;
 FROM rejects ;
 WHERE daterecv BETWEEN StartDate AND EndDate ;
 GROUP BY 1,2 ;
 ORDER BY 1 ;
 INTO CURSOR VendorPerf
Regards,
Sam
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform