HeelNGville
Registered User.
- Local time
- Today, 06:57
- Joined
- Apr 13, 2004
- Messages
- 71
I have a table that contains specific customer transaction data. In this table there are the following fields:
Document
Vendor
Vendor Name
Units
Value
There are instances in which multiple records could exist for one document number. Such as:
Document-----Vendor-------Vendor Name------Units------Value--------
12345678------AAAA--------ABC Co.-------100------200.00
12345678------BBBB---------BBC Co.--------25-------50.00
12345678------CCCC----------CCC Co.--------10-------20.00
What I am attempting to do is, sum the units & value fields and report the data on one line with the vendor record with the > unit count. So, for the example above, the data returned would be:
Document-----Vendor-------Vendor Name------Units------Value--------
12345678------AAAA--------ABC Co.-------135------270.00
Can this be performed in one single query vs multiple queries. If so, any guidance would be welcomed.
Thx
Document
Vendor
Vendor Name
Units
Value
There are instances in which multiple records could exist for one document number. Such as:
Document-----Vendor-------Vendor Name------Units------Value--------
12345678------AAAA--------ABC Co.-------100------200.00
12345678------BBBB---------BBC Co.--------25-------50.00
12345678------CCCC----------CCC Co.--------10-------20.00
What I am attempting to do is, sum the units & value fields and report the data on one line with the vendor record with the > unit count. So, for the example above, the data returned would be:
Document-----Vendor-------Vendor Name------Units------Value--------
12345678------AAAA--------ABC Co.-------135------270.00
Can this be performed in one single query vs multiple queries. If so, any guidance would be welcomed.
Thx