I have a table SQL_INFO that keeps information on which columns should be selected from which tables in my SQL code:
I need a SQL that would take ID as parameter and adjust itself according to the SQL_INFO table.
I.e., if ID=125
I need the SQL to bring the results according to the query:
SELECT CUSTOMER FROM ORDERS, and fo on.
Thanks.
Code:
ID TABLE_NAME COLUMN_NAME
== ========== ===========
125 ORDERS CUSTOMER
131 PEOPLE LAST_NAME
143 .......
I.e., if ID=125
I need the SQL to bring the results according to the query:
SELECT CUSTOMER FROM ORDERS, and fo on.
Thanks.