can someone make me understand i have 2 tables,
table1 :
"id"
1
2
3
4
5
table 2 :
"bouquet"
[2,3,4,5]
i want select "id" of table1 only if it is in "bouquet" of table2
so what sql commande i need to use ?? the result is supposed to be 2 3 4 5
SELECT * FROM `table1` WHERE id IN(bouquet of table2 ?????)
how i do this ? can i do like this
SELECT * FROM `table1` WHERE id IN(SELECT bouquet FROM `table2`)