Using SQL Server 2000. If the start date is 06/23/2008 and the end date is 06/23/2008
Then I need the query output as
06/23/2008 06/24/2008 06/25/2008 . . . 06/30/2008
I created the table names as Integer, which has 1 column, the column values ββare 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, then I used the query below
Test request
SELECT DATEADD(d, Hi * 100 + T .i * 10 + Ui, '" & dtpfrom.Value & "') AS Dates FROM integers H CROSS JOIN integers T CROSS JOIN integers U order by dates
In the above query, only 999 dates are displayed. 999 Dates mean (365 + 365 + 269) Dates only. Suppose I want to choose more than 3 years (from 01/01/2003 to 01/01/2008). The above query is not suitable.
How to change my request? Or any other request is available for the above condition.
Please provide me a request.
source share