I am trying to create 1 PL/SQL statement that would allow me to get multiple table outputs after each successive datetime iteration and rename each table with the year of that datetime iteration. Example below with desired results. Thanks
Create table MY_TIME_XX AS
( Select
X.*
FROM Metadata X )
Where X.Datetime between '01/01/2014' and '12/31/2014'
So in the end my schema will have
- MY_TIME_14
- MY_TIME_15
- MY_TIME_16
etc....
to_date('01/01/2014','mm/dd/yyyy')ordate '2014-1-1'instead of'01/01/2014'