I have a table holding banking transaction information (exported from quickbooks). This table holds a few thousand records. I am using Access to get some quick results so this database does not have a separate “payee” table with a relationship to the transaction but is only a single table with “payee”, “amount” & “ account” fields among others. What I need to query the results to be is:
1 result for each separate payee and the most common account used for that payee.
For example let’s say in this table there are 50 entries with the payee of “Home Depot”. Let’s also say that the account field for 40 of those Home Depot records was listed as “home improvement” and the other 10 the account field stated “other”. I would need a query that returned 1 result for payee - Home Depot and the most common acount used for Home Depot being”home improvement”.
BUT, not just return the single Home Depot record. The same results for each unique payee filed in the table is needed. So the table may have 150 different unique payees, so I would need the results to contain 150 records - one for each payee, but list the most common account name used for every record of each payee.
Any suggestions? I’m really stumped on this one.
1 result for each separate payee and the most common account used for that payee.
For example let’s say in this table there are 50 entries with the payee of “Home Depot”. Let’s also say that the account field for 40 of those Home Depot records was listed as “home improvement” and the other 10 the account field stated “other”. I would need a query that returned 1 result for payee - Home Depot and the most common acount used for Home Depot being”home improvement”.
BUT, not just return the single Home Depot record. The same results for each unique payee filed in the table is needed. So the table may have 150 different unique payees, so I would need the results to contain 150 records - one for each payee, but list the most common account name used for every record of each payee.
Any suggestions? I’m really stumped on this one.