sawilliams
Technical User
Sorry my Subject sounds so cryptic. What I need is probably very easy...
I have a table with CUST-ID, AMOUNT, DATE, REF_NO. I want to pull, for each Customer, the most recent item and report all 4 fields. I did:
and do get the most recent date but I don't know how to get the associated AMOUNT and REF_NO.
Help would be greatly appreciated...
I have a table with CUST-ID, AMOUNT, DATE, REF_NO. I want to pull, for each Customer, the most recent item and report all 4 fields. I did:
Code:
SELECT CUST-ID, Max(DATE) GROUP BY CUST-ID
and do get the most recent date but I don't know how to get the associated AMOUNT and REF_NO.
Help would be greatly appreciated...