Here is my column that displays the full addresses.
I want to split the name street and the number street in two separate columns. I have tried this:
SELECT
substring([ObjektStr], 1, patindex('%[1-9]%', [ObjektStr])-1) as Street,
substring([ObjektStr], patindex('%[1-9]%', [ObjektStr]), len([ObjektStr])) as HouseNumber
FROM
table1
without a result. I want something to search for the name until it finds the first number. Any idea?
Thanks