How to create a table that contains a single column of date data type, that consists of all days starting from Jan 1, 2000 until today in oracle SQL
If this is MS SQL Server try this:
DECLARE @DateFrom DATETIME = '20000101';
DECLARE @DateTo DATETIME = GETDATE();
WITH Dates(date)
AS
(
SELECT @DateFrom
UNION ALL
SELECT DATEADD(day,1,Dates.date) FROM Dates WHERE Dates.date < DATEADD(DAY, -1, @DateTo)
)
SELECT * FROM Dates OPTION (MAXRECURSION 5000);