Apologies for the fuzzy name ...
My problem is this; I have a SQL Server table with about 100,000 records. Each person has an address, something like "Nieuwe Prinsengracht 12 - III." Now the client wants to separate the street from the number and add (so each address becomes two or three fields). The problem is that we cannot be sure of the format in which the current address is located, it may just be something like "Velperweg 30".
The only thing we know about this is that it is a piece of text followed by a number, possibly followed by some other text (which may contain a number).
A possible solution is to do this with regular expressions, but I would very (many, many) do this with a query. Is there a way to use regular expressions in a query? Or do you have other suggestions on how to solve this problem?
source
share