Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Query
Message
 
To
26/09/2016 10:42:05
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 7
Network:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01641334
Message ID:
01641335
Views:
53
>Sir I have these code
>
>
>UPDATE cr_sale SET weight=SUM(crsalp.qty*crsalp.weight) from crsalp WHERE cr_sale.vou_no=crsalp.vou_no
>
>
>it says:
>
>File 'sum.prg' does not exist.
>
>Please help
UPDATE cr_sale SET weight= crsalp.TotalWeigth;
FROM cr_sale;
INNER JOIN (SELECT vou_no, SUM(qty*weight) AS TotalWeigth;
                   FROM crsalp;
            GROUP BY vou_no) crsalp ON cr_sale.vou_no=crsalp.vou_no
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform