title: Oracle SQL: Get value from column where column name comes from a another table
body: <p>Say I have <code>Table1</code> with columns: <code>id1, name, column_name</code><br>
  And a <code>Table2</code> with columns: <code>id2, id1 (fk), col1, col2, col3, ..., colN</code></p>
  
  <p>This is just a simplistic example of what I am looking for. In actuality, there are multiple tables in-between these 2 tables. </p>
  
  <p>The values in <code>Table1</code> under <code>column_name</code> are string values <code>"col1", "col2", "col3", ..., "colN"</code>.</p>
  
  <p>Essentially, I want a select statement that will replace the strings <code>"col1", "col2", ...</code> with the actual values of column 1, column 2, ... from <code>Table2</code>. </p>
  
  <p>Thanks.</p>