I am working with a query where i need a feature like "LIKE" and "IN" together, the values are returned by SSRS and i have no control over how to format the string supplied by SSRS..
My scenario is something like as following
SELECT *
FROM suppliers
WHERE supplier_name LIKE IN ('IBM', 'Hewlett Packard', 'DELL', 'Microsoft',)
I want all the supplier names which have 'IBM', 'Microsoft' etc in them.
Ex: 'IBM_ER', 'IBM-PCR', 'EBM_TCC', 'Microsoft-Delta', 'Microsoft-TCC'etc.
I will be receiving list of options as parameter from SSRS, where @Manufacture consists of string as shown above, and i can't control that.
SELECT *
FROM suppliers
WHERE supplier_name LIKE IN (@Manufacturer)
Any work around to achieve this thing ?