I have code_table
which contain the below columns:
- ID
- FIELD_NAME
- TABLE_NAME
- WHERE_CONDITION
now, I need to write select statement that return table contain 2 columns, the first column is code_table.ID, and the other column is the result of the below select statement
select code_table.FIELD_NAME
from code_table.TABLE_NAME
where code_table.WHERE_CONDITION = 1;
how can I solve it ?