Hi Oleksandr.
Welcome to Bytes.com :-)
Oleksandr:
I need to fill "Hummer qty" column for every day entered for every Client using second table below where there is Dated history of each Client, at which dates quantity of hummers were increased by each Client.
Are you sure? Is this your idea or was it suggested to you?
That approach goes against the doctrine of normalisation (
Database Normalisation and Table Structures) of data and, while there are cases where the practicalities override the requirements of managing data in a logical way, I would advise against this unless the reasons for doing so are very solid & impelling.
Normally, when presented with a requirement to show totals against any group headings, it is done with a query where the grouping is matched between the tables and the quantity values are aggregated (in this case summed together to reach a total). There is no requirement to store these calculated values. Logically they can change over time - thus leaving the updated records in your approach unreliable anyway.
In your example data it isn't clear what your actual grouping is. At one point it looks like just the Client and the Date, yet at another it seems to include the Client, the Date
and the Task. As far as explaining the situation generally is concerned, this doesn't matter. I have explained the issues that work whatever is the actual case for you. However, if you continue to work with this without a clear understanding yourself of what fits where, then you will struggle massively.
Best of luck with your project.