I have an oracle database and I am running the below query
select table_name
from db_test.test
where table_name like '%20170128'
This returns me a column with all the tables with the specific date at the end. How can I take this list and query them?
execute immediate.union all) every night as a batch job. Would something like that work?select * from v_calls_last_30_days where call_date = date '2021-04-21'. I could probably work up a demo, though your example suggests you need to go back 4 years so this may not be practical for your case.