CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

YesSoftware Forums -> CodeCharge Studio -> PHP

 DB query for last record

Print topic Send  topic

Author Message

Posts: 17
Posted: 08/16/2014, 9:01 AM


I am trying to amend a customer's member statement system that's developed using CCS 4. I have a member database where each member has a record per year. Currently the system is very simple, member's login then can query their records by year.

Now the customer wants that to be changed so that any query will just fetch the latest record and produce that as a summary. How do I write a DB query that will fetch the last record for a particular member number?

Any help would be appreciate.

View profile  Send private message

Posts: 735
Posted: 08/16/2014, 9:21 AM

ORDER BY and then LIMIT 1;

View profile  Send private message

Posts: 639
Posted: 08/16/2014, 3:03 PM

Not sure what is being asked?

A summary is an aggregate of multiple values when more than one exists.

Therefore, the most recent record should only capture the most recent transaction.

Isn't it?

Central Coast, NSW, Australia.

View profile  Send private message

Posts: 17
Posted: 08/17/2014, 2:15 AM

Thanks for all the help.

The current year's record has the total balance of the member and other details like total contribution, etc. This is all that is required instead of giving the option to members to query by year.

View profile  Send private message

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.