I am sure there's a simple way to do this but I can't get my head round it.
I have a master table with accounts (account no, name, etc) and a linked table with transactions, many per account, (date, amount, etc).
Is there an SQL statement to retrive the name from the master table with the date and amount from the most recent by date transaction?
I can use LAST but the last transaction may not have the most recent date.
I tried MAX on the date but don't know how to get the amount on that transaction.
Thanks
I have a master table with accounts (account no, name, etc) and a linked table with transactions, many per account, (date, amount, etc).
Is there an SQL statement to retrive the name from the master table with the date and amount from the most recent by date transaction?
I can use LAST but the last transaction may not have the most recent date.
I tried MAX on the date but don't know how to get the amount on that transaction.
Thanks