Given a query that returns a table name, is it possible to evaluate the name and use it in the next query?
eg.
select count(1) from x where x in (select table_name from ALL_TABLES where table_name like 'MY_TABLE_%');
Obviously, this is not valid syntax, but it should illustrate what I'm trying to do.
source share