Is it possible to join table 2 on table 1 using a join as follows?
SELECT *.table2 FROM table1 JEFT JOIN table2 ON table2.id IN( table1.values ) WHERE table1.id = 1
Here is the structure
table1
id | table2_ids
______|__________
1 | 2,3,4,5,6
table 2
id | name
_____|_______
2 | Joe
3 | John
4 | Bill
5 | Bob
I would like the output to be
id | name
_____|_______
2 | Joe
3 | John
4 | Bill
5 | Bob
I would be happy to rephrase my question title if someone can suggest an improvement ( which I don't think would be hard :) )