Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle generate list of dates in between a date range

-- All dates between 01/01/2021 and 15/01/2021
SELECT to_date('01/01/2021', 'DD/MM/YYYY') + ROWNUM - 1
FROM ALL_OBJECTS
WHERE ROWNUM <= to_date('15/01/2021', 'DD/MM/YYYY') 
	- to_date('01/01/2021', 'DD/MM/YYYY') + 1;
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql changer nom table 
Sql :: read xml in sql server 
Sql :: what is intersect in sql 
Sql :: oracle select json_table example 
Sql :: SQL print multiple variable 
Sql :: postgresql database url 
Sql :: how to export/import a mysql database via ssh 
Sql :: sqlite 3 mac 
Sql :: how to casting data types in postgresql 
Sql :: how to select month from date in sql 
Sql :: mysql fetch all data 
Sql :: difference between normalization and denormalization 
Sql :: sql unique select 
Sql :: symfony Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails 
Sql :: how to change server name in sql server 
Sql :: how-to-remove-mysql-root-password 
Sql :: android sqlite query join 
Sql :: flask connect to mysql 
Sql :: export mysql table to file 
Sql :: ImportError: DLL load failed while importing _sqlite3: The specified module could not be found. 
Sql :: replace content value from old to new sql 
Sql :: oracle drop type if exists 
Sql :: python connect microsoft sql server 
Sql :: sql count(*) 
Sql :: sql select on string 
Sql :: mysql workbench format date 
Sql :: left join in sql oracle 
Sql :: mssql replace first occurrence 
Sql :: stored procedure data to table 
Sql :: sqlplus change user 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =