The fields in picture are the fields I need (and they are already part of each table’s schema…
The way I’m thinking of working is:
Pull the data from each table ordered by date
Assign these values to an Array
Present the Array’s data in my page
(Just in case, we are talking about 10-15 records maximum in total)
If not an Array then which could be the way to solve it?
I do not ask for the exact way to build this structure, but only the way to process in order the page not to be slow and resource/traffic effective.
I have to check on what MySQL views are… Yes, I’m working on commercial type of applications (products, clients, agents, orders etc and a lot of this kind of reports are needed)
@Teodor I don’t know if I got it right, probably I have to read more this tutorial in order to understand.
Just in case, I created a representation of what I want to do…
If you believe that what I am trying to do can be accomplished with data transformations, just tell me a word “yes” and I will keep on trying.
I followed tour suggestion and seems to work very nice but noticed something weird…
What I am getting back from the custom SQL is a Text instead of an Array.
Although it behaves like an array (the records come normal from the database) when I try to bind values it appears as a Text.
So, when I try to create a Total/Balance field and bind Collection->Sum->Property value to it there is no Collection.