Hi,
I'm trying to create an auxiliar list of dates for using in a JOIN with another table as default values for the months where I have no data.
I'll attach the SQL query I wrote so far, please take a look at it.
The problem is that I can't do exactly what I want to do, which is generating all first-day-of-month dates from 2020 until today (and that depends on the point in time when I'm opening my dashboard, so TODAY must be DYNAMIC).
I'm not sure if that's an issue from Zoho or from SQL itself, but please let me know what the right approach.
Please don't suggest hard-coding all dates from 2020 to 2024, because that not only violates the main requirement of this job, it also is not a real solution, because I can't update this query every month so that a few data rows will now be available.
The behavior I'm looking for is very similar to Python's RANGE function, but applied to dates. That's my hint.
Hoping to hear from you soon,
Arthur