I have date range: Date 1 and Date 2
in one table I have Date that are registered according to user logging in.
when I do SQL between Date1 to Date2, it only gives Date that exist.
so for example, 01-01-2016 to 01-04-2016: four days
I need:
01-01-2016 - 0
01-02-2016 - 5
01-03-2016 - 3
01-04-2016 - 0
instead I get:
01-02-2016 - 5
01-03-2016 - 3
because other two dates do not exist in the table.
how can I solve it?
I need to display all date selected with 0