Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL / GROUP BY (Join)
Message
From
26/09/2003 13:13:00
 
 
To
26/09/2003 12:48:44
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00832747
Message ID:
00832763
Views:
12
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
Previous
Reply
Map
View

Click here to load this message in the networking platform