Hi,
I have following problem. I have to run a query where one of the result fields should be within range of values I got from different table.
Query 1
select column_x from table1 where filed_x = 'Y'
this query gives me 33 different alphanumeric values
Query 2
select column1,
column2,
column3
from table2 where
column3 like '%ONE OF VALUES FROM QUERY1'
I am quite fresh in SQL and I really need help with this one. The problem is, that column3 in table2 can hold not only the exact values received from query1, but also values from query1 with little prefixes. Do you know any way to get this working?
Thanks for any comments. MArcin
I have following problem. I have to run a query where one of the result fields should be within range of values I got from different table.
Query 1
select column_x from table1 where filed_x = 'Y'
this query gives me 33 different alphanumeric values
Query 2
select column1,
column2,
column3
from table2 where
column3 like '%ONE OF VALUES FROM QUERY1'
I am quite fresh in SQL and I really need help with this one. The problem is, that column3 in table2 can hold not only the exact values received from query1, but also values from query1 with little prefixes. Do you know any way to get this working?
Thanks for any comments. MArcin
Comment