This could be a repost; if so, link me and I will delete.
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.
How can I got about this? Does this require an inner join?
I have some code I can post, but it is a disaster.