Query below creates numbers 0 to 23.
WITH Hours(h) AS ( SELECT 0 UNION ALL SELECT h+1 FROM Hours WHERE h < 23 ) SELECT h FROM Hours
WITH Hours(h) AS ( SELECT 0 UNION ALL SELECT h+1 FROM Hours WHERE h < 23 ) SELECT h FROM Hours
Oracle | SELECT to_date('01-JAN-2014', 'dd.MM.yyyy') FROM dual |
SQL Server | SELECT CAST('01-JAN-2014' AS DATE)
|
SQL Server | SELECT CONVERT(DATE,'01/JAN/2014')
|