I have a record in the database table with Street_Name “Park Avenue 10” in Street table.
I want to retrieve the record like
SELECT *
FROM Street
WHERE Street_Name LIKE '%Park Ave 10%'
The current like operator does not give the result “Park Avenue 10” for the above query.
How can I split the word with spaces and check the like operator for each word to get “Park Avenue 10” in MSSQLSERVER
1 Answer