I have a database table that contains the following data:
ID | Date | Bla
1 | 2013-05-01 | 1
2 | 2013-05-02 | 2
3 | 2013-05-03 | 3
4 | 2013-05-05 | 4
Note that there is a date missing: 2014-05-04. How should I alter the following query:
SELECT *
FROM table
where DATE >= '2013-05-01' AND DATE <= '2013-05-05'
So that I would end up with the following output:
ID | Date | Bla
1 | 2013-05-01 | 1
2 | 2013-05-02 | 2
3 | 2013-05-03 | 3
null | 2013-05-04 | null
4 | 2013-05-05 | 4
Is this possible?