I have two tables. First table have column called column_name which contains values columns names of the second table like ( column1 , column2 , etc). I need to select columns from the second table depending on the result of query column_name from the first table .
I need help solving this issue but I cant develop it: