asked on
DECLARE @startdate DATETIME= '2016-03-06', @enddate DATETIME= '2016-03-19';
WITH calendardates
AS (
SELECT date1 = @startdate
UNION ALL
SELECT DATEADD(DAY, 1, date1)
FROM calendardates
WHERE DATEADD(DAY, 1, date1) <= @enddate
)
Select *
From calendardates
2016-03-06 00:00:00.000
2016-03-07 00:00:00.000
2016-03-08 00:00:00.000
2016-03-09 00:00:00.000
2016-03-10 00:00:00.000
2016-03-11 00:00:00.000
2016-03-12 00:00:00.000
2016-03-13 00:00:00.000
2016-03-14 00:00:00.000
2016-03-15 00:00:00.000
2016-03-16 00:00:00.000
2016-03-17 00:00:00.000
2016-03-18 00:00:00.000
2016-03-19 00:00:00.000
ASKER
Oracle is an object-relational database management system. It supports a large number of languages and application development frameworks. Its primary languages are SQL, PL/SQL and Java, but it also includes support for C and C++. Oracle also has its own enterprise modules and application server software.
TRUSTED BY
Open in new window