I have a program that deals with huge amount of data. The process is like this, first I enter the client’s name and account number, then it’s saved in a db, then I get the record from there and enter his/her electricity consumption for every month in an accounting year. I want to show the last entered data on first, so that I can apply pagination. How can I do that? Thanks for the help!
Share
You can just call your “last data” by querying by your table Autoincrement key (usually Id) ordering by the same key (DESC) and limiting the result to fetch just the first row
Ex: