Good afternoon, colleagues! Your opinion is required regarding the logic of building statistics online store using Google charts. Google Charts was chosen for its simplicity and gratuity.
I apologize in advance in SQL and the backend is not strong. With the construction of logic, too, I do not have much experience.
What we have:
Mysql database;
5 tables where the clicks are recorded (1 - old customer, 2 - new customer, 3 - product, 4 - comments, 5 - reviews);
What is necessary:
Task number 1. build 5 graphs of the results of clicks recorded in each table;
Task number 2. build on the basis of the values of 5 tables - 1 schedule of clicks throughout the store.
The author's vision of the question:
Solution of the problem №1 - since the GC chart takes ready-made values of the table fields, first summarize the value of each row of the table and write their result into a separately created table, let's call it total-1 - thereby solving the problem with the output of 5 tables charts.
Solution of the problem №2 - then I summarize the results of 5 tables and write down the total-2 table created in the second one, thus constructing a graph throughout the store.
As a result, two new tables. Will this be an optimally and correctly constructed data collection scheme and output them?