I have one main table
MainTable ( ID, Name )
The Name column contains the name of other table there in database.
I want a query to fetch all the information from the table whose name is referenced in Name column of MainTable.
Eg:
Main Table
ID 1, Name A ID 2, Name B
Table A
~~~~ Values~~~~
Table B
~~~~ Values~~~~
When query for 1 is sent then all values for A should come.
You can’t do this with SQLite, AFAIK. Work this dynamic SQL out at an application level.