Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL / GROUP BY (Join)
Message
De
26/09/2003 13:13:00
 
 
À
26/09/2003 12:48:44
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00832747
Message ID:
00832763
Vues:
13
Hi John,

use this:
SELECT LINE.cCode, SUM(ROLLS.nWeight_Roll) AS nAccepted ;
FROM LINE ;
LEFT JOIN ROLLS ;
ON LINE.ID=ROLLS.clineid AND UPPER(ALLTRIM(CSTATUS))=="ACCEPTED" ;
GROUP BY LINE.cCode ;
INTO CURSOR tmpProduction
Fabio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform