I have a MySQL Database with data storing things such at sales of items.
I wish to produce an html display table based on a per day sales of each of the items.
How do i produce a table of data to include the dates of where no items exist in the database on some of the days?
Example:
01-05-14 - 1 Sold
02-05-14 - 4 Sold
03-05-14 - 0 Sold
04-05-14 - 2 Sold
05-05-14 - 0 Sold
I can produce a table based on the data stored in the tables, but how do i manage the data based on dates that do no exist in the tables?
Would i be correct in assuming that i should produce a table with the dates first and then do a MySQL query based on each of those dates?