I have a requirement to get all the records from a table but the condition is I want to get the table name from another table. Any suggestions on how I can do it?
SELECT *
FROM (SELECT table_name
FROM table_containing_table_names
WHERE table_id = 17) AS Records;