I have this SQL query that I am using for dynamic search in the database:
SELECT [Name],[Vendor]
FROM OrderedApps
Where Name like '%' + 'Microsoft Visio' + '%' OR [Vendor] like '%' + 'Microsoft Visio' + '%'
In the database I have e.g.:
Name Vendor
Visio Viewer Microsoft
Office Visio Microsoft
Office test Microsoft
If I provide the input Microsoft Visio
I would like it to list
Name Vendor
Visio Viewer Microsoft
Office Visio Microsoft
How can I improve my SQL query to achieve this? I have done googling, but haven't found what I want to do exactly.