SELECT VendorID, Account, Sum(Amount) AS Total
FROM TimeRecord
GROUP BY VendorID, Account1
ORDER BY VendorID
This gives me the information I need but puts the Total on multiple VendorID rows (1 row for each account). I need to have one row per vendor with the totals for each account. I hope...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.