![]()
Name: screenshot 1.png Views: 19 Size: 23.0 KB ID: 22113" class="thumbnail" style="float:CONFIG" />
In the query result above I used a specific mbrsep (account#) to make things simple. What I need to do is query this table that contains every payment any customer has ever paid for just the payment amt and date of the most recent payment they made, whether that was last week or last year.
I will have another query reference this one for the information. So I need this query to only return 1 record for each mbrsep and that be the one for the most recent date. Not really using dates here are the field that contains the payment date is just a numerical field with the date in the format of YYMMDD which means basically I am querying for the record with the largest number in this field.
How can I achieve that?