I have a table called hotelwith the following information:
Hotel_Id: 2950Hotel_Name: Inn in the parkHotel_Number: 01234567Hotel_TypeId: 1
I need to be able to search for entries in which the name column contains certain terms.
Search:
select *
from ContainsTable(hotel, Hotel_Name, '"Inn on Park"')
I am not getting results, but if I search:
select *
from ContainsTable(hotel, Hotel_Name, '"In on Park"')
I get
Key: 2950
Rank: 176
I thought there was a problem with the term "hotel", but if I'm looking for:
select *
from ContainsTable(hotel, Hotel_Name, '"Inn"')
I am returning the same key: 2950, โโresult: 176.
Is "inn" a keyword that causes this problem?
source
share