I need to generate a list of days between 2 given dates. The query should be something like
Select ... from ... where "date" is between date1 and date2
And the response for '2014-05-12' and '2014-05-16' should be
Monday | 2014-05-12
Tuesday | 2014-05-13
Wednesday| 2014-05-14
Thursday | 2014-05-15
Friday | 2014-05-16
The start and end date will never be more then 1 month apart and will always be in the future. I would preferably not make a table or view with all the dates in, but if thats the only solution...
I found generate days from date range but the given query gave an error and i dont understand it at all so can't start to find what might cause the error.
Thanks for the help