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
|
|
|
saseow
Posts: 744
|
Posted: 08/16/2014, 9:21 AM |
|
ORDER BY and then LIMIT 1;
Hopefully.
|
|
|
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?
_________________
Central Coast, NSW, Australia.
|
|
|
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
|
|
|
|