views:

75

answers:

2

I need something like:
select * from table1 where name like %table2.name

A: 

u can use join between 2 tables if there is a common field

Haim Evgi
+1  A: 
select <col list>
from table1 t1 inner join table2 t2
on t1.name like concat('%', t2.name, '%')
davek
doesn't work in mmsql server
simone
you tagged your question as mysql, and I tried it on mysql successfully before posting. What error do you get?
davek