Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Last Five Payments

Status
Not open for further replies.

jorbroni

Technical User
Dec 5, 2002
24
US

Hi

I am trying to write a query that will give me the last 5 payments for each of our clients. Can anyone give me some ideas on how to write this query?

Thank you
Reggie
 
Sure, write a select statement that pulls the info for the last 5 payments for each of your clients, that should give you what you want.

If you want any more details, you'll have to give us some more details. What do the database tables consist of? Are you tracking dates? What are some of the data columns?



Hope This Helps!

Ecobb
Beer Consumption Analyst

"My work is a game, a very serious game." - M.C. Escher
 

Sorry About the lack of detail.

The table I am using consist of the Client code, Payment Date, Amount of each payment.

Thank you
 
Are you wanting just the top 5 records, or the top 5 records for each customer?



Hope This Helps!

Ecobb
Beer Consumption Analyst

"My work is a game, a very serious game." - M.C. Escher
 

Actually, I am looking for the last 5 payments for each client.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top