K
Kathy Webster
I apologize if this posts twice.
I am perplexed. Seems like it should be so easy, but...Can you help? My
table has:
Client PaymentDate Amount
AutoIncrementingPaymentID
3 5/20/06 $10
10
3 2/20/06 15
15
2 8/15/06 10
17
2 9/15/06 15
24
2 7/14/06 10
27
1 10/19/06 20
34
1 10/18/06 10
35
1 10/17/06 30
36
I want a query that will return the LAST payment date and dollar amount only
for each client.
So in this scenario, I want the query to return only the following:
Client PaymentDate Amount
AutoIncrementingPaymentID
1 10/19/06 20 34
2 9/15/06 15 24
3 5/20/06 10 10
As you can see, I can't assume that the highest AutoIncrementingPaymentID is
the last payment date, because payments may not have been entered
cronologically.
Can anyone help?
TIA,
Kathy
I am perplexed. Seems like it should be so easy, but...Can you help? My
table has:
Client PaymentDate Amount
AutoIncrementingPaymentID
3 5/20/06 $10
10
3 2/20/06 15
15
2 8/15/06 10
17
2 9/15/06 15
24
2 7/14/06 10
27
1 10/19/06 20
34
1 10/18/06 10
35
1 10/17/06 30
36
I want a query that will return the LAST payment date and dollar amount only
for each client.
So in this scenario, I want the query to return only the following:
Client PaymentDate Amount
AutoIncrementingPaymentID
1 10/19/06 20 34
2 9/15/06 15 24
3 5/20/06 10 10
As you can see, I can't assume that the highest AutoIncrementingPaymentID is
the last payment date, because payments may not have been entered
cronologically.
Can anyone help?
TIA,
Kathy