I am joining onto a freetexttable using a searchTerm parameter which is also used in a number of other freetexttables in the query.
I would like to remove the city name from this parameter if it exists in the current row. Trying to use replace like this:
freetexttable(Gigs, Name, REPLACE(@searchText, c.CityName, '')) gigkt
ON g.GigID = gigkt.[Key]
results in a syntax error.
Is there other way I can do this?