Hello, I am in need of some help with designing this query. I need to sum all the transaction amounts according to their account ID so that I only have one line for each account ID showing the total from all the transactions. This is what it looks like in SQL view right now:
SELECT DISTINCTROW ChartOfAccounts.[Account ID], ChartOfAccounts.[Account Name], ChartOfAccounts.[Account Type ID], ChartOfAccounts.Statement, ChartOfAccounts.[Balance Sheet Heading], Transactions.[Tx Amount] AS [Sum Of Tx Amount]
FROM ChartOfAccounts INNER JOIN Transactions ON ChartOfAccounts.[Account ID] = Transactions.[Account ID]
WHERE (((ChartOfAccounts.[Account Type ID])=1 Or (ChartOfAccounts.[Account Type ID])=2 Or (ChartOfAccounts.[Account Type ID])=3));
I also attached a picture of what my query currently looks like.
I honestly do not have much experience with access or SQL so simple instructions would be really appreciated.
SELECT DISTINCTROW ChartOfAccounts.[Account ID], ChartOfAccounts.[Account Name], ChartOfAccounts.[Account Type ID], ChartOfAccounts.Statement, ChartOfAccounts.[Balance Sheet Heading], Transactions.[Tx Amount] AS [Sum Of Tx Amount]
FROM ChartOfAccounts INNER JOIN Transactions ON ChartOfAccounts.[Account ID] = Transactions.[Account ID]
WHERE (((ChartOfAccounts.[Account Type ID])=1 Or (ChartOfAccounts.[Account Type ID])=2 Or (ChartOfAccounts.[Account Type ID])=3));
I also attached a picture of what my query currently looks like.
I honestly do not have much experience with access or SQL so simple instructions would be really appreciated.