Hi all,
I have a bit of an issue for which I suspect there could be an easy solution, but so far it defies my logic. I work in a charity, and I have a table to record donations from funders to projects, with the following fields:
So far I have an aggregate query as follows:
This returns all funders by decreasing order. Now, if I want to have the main funders, I can use allen browne's tip (http://allenbrowne.com/subquery-01.html#TopN) but this will return one row per funder; I would like to have one row with the three funders.
Any suggestion on how to go about it?
Thank you,
Rémi
I have a bit of an issue for which I suspect there could be an easy solution, but so far it defies my logic. I work in a charity, and I have a table to record donations from funders to projects, with the following fields:
- TransactionID (autonumber - primary key)
- Project
- Funder
- TransactionDate
- Amount
So far I have an aggregate query as follows:
Code:
SELECT Project, Funder, Sum(Amount) AS TotalIncome
FROM Table
GROUP BY Project, Funder
ORDER BY Sum(amount) DESC
Any suggestion on how to go about it?
Thank you,
Rémi
Last edited: