I have a database containing a donor table and a donation table. The common field is donor id. One donor can have many donations.
I have set up an aggregate query to find the latest date for a particular donor. I used the Max function on the date field. This part works perfectly. My query results show the highest date for each donor.
I am also required to show the amount that was given on that latest date. This is where I have a problem. Iโm unclear as to what function to use on the totals row for the amount field. See attached screenshot for a picture of the query in question.
Any suggestions or examples of this type of aggregate query would be greatly appreciated.