Hi,
Is there a way to create a table of dates on the fly *without* using a looping structure?
Basically, what I want to do is create & load a table of dates for the past 90 days (based on GETDATE()). It will run every day and create new dates for the past 90 days.
I wrote a little looping structure to do this and it works fine but just wanted to know if there are other methods that don't involve looping.
Thanks
Is there a way to create a table of dates on the fly *without* using a looping structure?
Basically, what I want to do is create & load a table of dates for the past 90 days (based on GETDATE()). It will run every day and create new dates for the past 90 days.
I wrote a little looping structure to do this and it works fine but just wanted to know if there are other methods that don't involve looping.
Thanks