title: Select column names from one table based off of values in column of another table
body: <p>This could be a repost; if so, link me and I will delete.</p>
  
  <p>First off, I am a SQL newb. I have two tables, table_1 and table_2. I want to select the column names from table_1 that only correspond to values found in a column named 'foo' from table 2.</p>
  
  <p>How can I got about this? Does this require an inner join?</p>
  
  <p>I have some code I can post, but it is a disaster.</p>