i want to execute a dynmic select in DB where schema and table are defiend by a select statement.
I tried
SELECT * FROM SELECT Creator || '.' || Name FROM sysibm.systables where CREATOR = (SELECT "column" FROM schema.table where "column" = "value") and "column" = "value"
But it doesnt work.
I also tried
SELECT * (SELECT 'FROM' || ' ' || Creator || '.' || Name FROM sysibm.systables where CREATOR = (SELECT "column" FROM schema.table where "column" = "value") and "column" = "value")
Any idea? Or is this not possible in DB2?
CYA_D0c