Skip to content
Advertisement

Return sums even if no data exist in given day

I have a table with amounts only on some days, e.g.:

How can I query the data and get:

I tried like:

But still it doesn’t return 0s for days without data, any ideas?

Advertisement

Answer

In Access, you can create a series of dates between the first and the last date, and then create an outer join to your summed data.

Here is how to create the date series:

Create a date table between two dates

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement