I don't know yet how to use joins and whenever I try to use them, my queries won't work.
What I want to to is to show users that have signed up grouped by days.
TABLE USER
- user_id
- register_date
But what happens if there is a day where there are no sign ups? That day is not shown but I want it to be showed.
select COUNT(a.user_id) as count1, a.register_date as count2
from user a
left outer join user b on a.user_id = b.user_id
GROUP BY a.register_date
I tried to adapt what I wanted from some examples but the previous query does not work since it does not show all the dates.
What I what is the following:
COUNT -> DATE
- 1 ------- 01-01-2013
- 0 ------- 02-01-2013
- 5 ------- 03-01-2013
- 0 ------- 04-01-2013
- 0 ------- 05-01-2013