I am doing a piece of work that involves standardizing address formats for my company and I was wondering if it was possible to isolate the housing/apartment number of a dwelling in a string in SQL Server. The data quality is currently poor and therefore address standardization is not good.
Some examples below; with desired outcome
Dwelling Address | Outcome Desired |
---|---|
Flat 123 Fake Street | 123 |
48 Bond Street | 48 |
Apartment 234 Lemon Lane | 234 |
Any code examples would be greatly appreciated.
Many thanks.