I have a table A with the string-column a and a table B with the string-column b. a is a substring of b.
try this:
Select * from A,B where B.b LIKE '%'+A.a+'%'