MFritts253
MIS
I have two tables that join with a Contract table with PK_Contract_ID to another table with Contract Detail with FK_Contract_ID which has a one to many. What i want from the detail table is a date field. Everytime a customer makes a payment the detail table gets a new record of the payment with a new date. What i want is to grab just the most recent payment for that contract ID.
This is what i am getting right now
C_ID ITEM DATE
001 1000 11/2
001 1000 11/3
001 1000 11/10
001 1000 12/5
What i want --- the contract id with the greatest date
C_ID ITEM DATE
001 1000 12/5
Cheers,
Michael