I have a table with amounts associated with an account per vendor. Somewhat like this:
VendorID Amount Account
1 8.24 2
2 4.39 1
2 12.69 2
3 1.98 2
1 3.67 2
2 14.87 3
I need to create a report query that will order the data so:
Vendor Sum(Account1) Sum(Account2) Sum(Account3)
1 11.91
2 4.39 12.69 14.87
3 1.98
I have used the Group By clause to group the Vendors and sum up the amounts but I have not been able to get the multiple account information on one row per vendor. Is this possible in one query? Thanks
W. Goodson
VendorID Amount Account
1 8.24 2
2 4.39 1
2 12.69 2
3 1.98 2
1 3.67 2
2 14.87 3
I need to create a report query that will order the data so:
Vendor Sum(Account1) Sum(Account2) Sum(Account3)
1 11.91
2 4.39 12.69 14.87
3 1.98
I have used the Group By clause to group the Vendors and sum up the amounts but I have not been able to get the multiple account information on one row per vendor. Is this possible in one query? Thanks
W. Goodson