how can i write a select query by combining IN and LIKE
i have a subquery which returns some records , with threse records i have to select records from another table.
the problem is i have to use LIKE clause on the resultant recors of the subquery
below is an example of what im trying to do
select * from salary where employeename like (select name from employee)
from salary table i need records which matches the name of employe table. i need to use LIKE .
can someone help me please
I’d go with a
joininstead of anin… although with the wildcards it will be a full table-scan anyways: