I can't figure out the SQL query that would be able to select a row based on a column containing a string but the string could be separated.
For example, the string I am searching for:
1345
Would match:
0123456
That includes 3 things:
1) Any string before
2) Any string after
3) Any string randomly in the middle
I have tried using the following queries
SELECT * FROM Products WHERE FileName LIKE %1345%
SELECT * FROM Products WHERE CONTAINS(FileName, '1345')
But these will not select if the string is randomly in the middle. What should I be doing instead?