Hi,
Could you recommend me how better to organize the following:
I have a table in the database,
date ! item ! sales_amount
I need to compare the sales data for 2 different periods So the result must look like
tems ! periode 1 ! periode 2 ! vs (periode2/periode1)
--------------------------------------------------------------------------
item1 ! 100 ! 200 ! 2
item2 ! - ! 50 ! N/A
In terms of SQL, it is two queries to the same table but with the different date range
How to put them to the one table considering that the list of items in the results can be different (some items the same, some not)
I think I can do something like that using sql join with subselect but maybe koolreport has something easier