Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting Data from mutiple tables
Message
From
10/11/2000 12:46:43
John Tomblin
Service Station Systems, Inc.
San Jose, California, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Selecting Data from mutiple tables
Miscellaneous
Thread ID:
00440294
Message ID:
00440294
Views:
50
I need to get an invoice total. The invoice line items are in 3 files, each of which may have any number of records for a given invoice. The Tables are Labor, Parts, and Fees. The fields I need to total are Labor.LSum, Parts.PSum, Parts.PTax and Fees.FSum.

Is it possible to get a single sum with a SQL Select or even an accurate sum of each of the four fields in one record?

If there are 2 records in each table for a given invoice, everything I try returns 6 times one of the records for each field being summed.
Next
Reply
Map
View

Click here to load this message in the networking platform