Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding quantity in free table
Message
De
19/12/2006 12:47:48
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
19/12/2006 12:26:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01178051
Message ID:
01178915
Vues:
21
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform