Reputation: 142
I have some values into a table like below :-
I want a query to get all the values which contains Bank only. Proper word should match.
Result should be like :-
Upvotes: 0
Views: 544
Reputation: 1269603
One method is to add spaces to the beginning and end of the column and then look for ' Bank '
:
where ' ' + col + ' ' like '% Bank %'
Upvotes: 2