Hi All,
I'm making a program that displays database entries between 2 dates in a graph form. I want a new graph entry for every day even if there is no data on that day. for example, If a set the date range to: 08/01/17 to 12/01/17 and I have 2 records between those dates on the 8th and the 10th then I'd get 2 results:
DATE ¦ VALUE
08/01/17 ¦ 25
10/01/17 ¦ 15
what I want is to return this sort of result:
DATE ¦ VALUE
08/01/17 ¦ 25
09/01/17 ¦ 0
10/01/17 ¦ 15
11/01/17 ¦ 0
12/01/17 ¦ 0
What sort of query should I write in order to return the blank results even though those records don't exist in my table?
Cheers
Steve
I'm making a program that displays database entries between 2 dates in a graph form. I want a new graph entry for every day even if there is no data on that day. for example, If a set the date range to: 08/01/17 to 12/01/17 and I have 2 records between those dates on the 8th and the 10th then I'd get 2 results:
DATE ¦ VALUE
08/01/17 ¦ 25
10/01/17 ¦ 15
what I want is to return this sort of result:
DATE ¦ VALUE
08/01/17 ¦ 25
09/01/17 ¦ 0
10/01/17 ¦ 15
11/01/17 ¦ 0
12/01/17 ¦ 0
What sort of query should I write in order to return the blank results even though those records don't exist in my table?
Cheers
Steve