i have two diff tables, and i need to do a search in them.
their sturcture is like this:
Table1
id, name
Table2
id, table1.id, name, value
So i need to get names from table1 where name in table2 could have two diff values. I dont know if im able to describe my problem clearly enough.
eg.
there would be following data in table2:
1,1,name1, value1
2,1,name2, value2
3,2,name3,value3
4,1,name4,value4
I would want to get those where table2 name would have both "name2" and "name3". And the values can be searchable aswell.