Is there a way to use a like operator and both sides of the like equation are columns. Listed below are two examples of what I am thinking. Is there a way to achieve this logic in a standalone query, without having to write a script or procedure?
select count(*)
from table_a a
where a.message like '%( select b.message from table_b where rownum < 2 )%'
;
select count(*)
from table_ a, table_b b
where a.message like '%b.message%'
;
select count(*)
from table_a a
where a.message like '%( select b.message from table_b where rownum < 2 )%'
;
select count(*)
from table_ a, table_b b
where a.message like '%b.message%'
;