Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding quantity in free table
Message
From
19/12/2006 12:47:48
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
19/12/2006 12:26:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01178051
Message ID:
01178915
Views:
20
Sam,
Do you have same vendorID for 2 vendorName?
Cetin

>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform