Oracle
 sql >> Datenbank >  >> RDS >> Oracle

So erstellen Sie eine Kalendertabelle in Oracle

connect by level Klausel verwendet werden :

 select FromDate+level-1 "Date", Description "HolidayName"
   from holiday 
connect by level <=  ToDate - FromDate + 1
  group by FromDate+level-1, Description
  order by 1;

Demo