I want to build a query like this:
SELECT * FROM T1 WHERE Charindex(ANY(SELECT City FROM Cities),T1ADDRESS)>0
As i understand, the ANY operator cannot stay as SQL functions argument. So, what is the alternative?
Suppose I want to write a UDF that returns 1 or 0 dependent on one input argument Address. How do I do this without for loop operator and without accessing to SELECT City FROM Cities array by index, as it can be done easily in the procedural languages?
WHEREclause.LIKEoperator.LIKEoperator and UDFs aren't great for performance. Would be useful if the city was normalised out of the address.