CassidyHunt
IS-IT--Management
Basically I have two tables:
I need a query that will allow me to do a like statement to compare the test from the second table to the test from the first table. If it contains that exact string I want it to return the result.
I tried this:
I know I am being stupid somewhere here. Any help would be appreciated.
Thanks
Cassidy
Code:
Test Result
-----------------------
abcdB 3316
bcdaB 3345
abcd 3316
Code:
Test
-----------------------
abcd
bcda
I need a query that will allow me to do a like statement to compare the test from the second table to the test from the first table. If it contains that exact string I want it to return the result.
I tried this:
Code:
select a.test arg_1, b.test arg_2, a.result from table1 a, table2 b
where a.test like '%' || b.test || '%'
I know I am being stupid somewhere here. Any help would be appreciated.
Thanks
Cassidy