'4914SMARKETSTSESTE109' LIKE '4914SMARKETSTE109' + '%'>I realize it won't be optimizable, but I am trying to find a solution to the parsing of address problem. If an address is not validated against our lookup tables (which shouldn't be the case but may very well be as new housing developments are built and hence streets added and the system may not be up to date at all times) then I need some 'just in case you don't validate it' means of seeing if a matching record exists in a 3rd party app's sqlserver (or foxpro) tables. However, it just dawned on me that this is not a solution anyway, because it would only work if the user entered all values:
>>>mvalue = '100'+'SO'+'MAIN'+'ST' >>>SELECT * FROM mysqltable >>where alltrim(number)+alltrim(st_prefix)+alltrim(street)+alltrim(st_suffix) = myvalue >>>>>>?