Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculate the total.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00478403
Message ID:
00479272
Views:
44
Hi,

Here is a one way you could do this.
step 1
add a new field to the existing table.

step 2
scan the table and enter the Quantity * Price to that new field each record.

step 3
Now you can do the Sum() SQL statement on that new field.

Here is a another way you could try, but I am not sure.
Where you do the SQL statement, try this.
SELECT ALL SUM(qtyFld * PriceFld) FROM employee INTO ....

Any way the first option will work. If you could do the second option it will be better.

Good luck
Previous
Reply
Map
View

Click here to load this message in the networking platform