CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 DB query for last record

Print topic Send  topic

Author Message
gulamc

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

Hi,

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.

Gulam
View profile  Send private message
saseow

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

ORDER BY and then LIMIT 1;

Hopefully.
View profile  Send private message
MichaelMcDonald

Posts: 640
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?


8-)
_________________
Central Coast, NSW, Australia.

View profile  Send private message
gulamc

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.

Gulam
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 http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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