I use ajax to consult with php the sales of a brewery during the time that the session of a cashier lasts, before logging out closes the box.
But the fact is that they sell bulk products and packaged products so I have two tables.
I wanted to consult with UNION but the number of columns is variable: The used SELECT statements have a different number of columns
Does JQUERY have the possibility to join two JSON arrays? Otherwise you would have to modify the structure of tables and therefore the entire application. Here the structure: