Oracle
 sql >> Database >  >> RDS >> Oracle

Genera intervallo di date da due colonne di date

Puoi usare un connect by interrogare usando prior + sys_guid() trucco

select id,start_date + level - 1 as "date", field1 from t 
connect by level <= end_date - start_date  + 1
    and prior id = id
and prior sys_guid() is not null;

DEMO