I am trying to get a result from oracle developer.
I need to join 3 table with dates, the output should be:
Date sum count num
2012-10-01 5000 30 15
2012-10-02 0 0 0
2012-10-03 60 150 350
2012-10-04 20 200 300
2012-10-05 1000 100 200
2012-10-06 1500 109 400
the input range is between 2012-10-01 and 2012-10-06.
If it can’t find data put the date with 0 in all other columns
You should generate all the dates and then left join the tables on dates.
Something like(I used two tables):