What is happening:
DATE | COUNTER |
---|---|
2012-01-01 | 32 |
2012-01-02 | 28 |
2012-01-04 | 12 |
2012-01-05 | 23 |
As you can see, on 2012-01-03 dates there isn't any data. So the goal is to create a query (without procedure) to produce below result:
DATE | COUNTER |
---|---|
2012-01-01 | 32 |
2012-01-02 | 28 |
2012-01-03 | 1 |
2012-01-04 | 12 |
2012-01-05 | 23 |