Hello
I try to separate the house number from the street name. I have in one column the following data: street
Ruschgrstr. 24
Austr 4a
Zhstr 5a/7b
…...
I need to make a query and to put the street in two separate columns streethouse number
Ruschgrstr. 24
Austr 4a
Zhstr 5a/7b
…..
Any ideas?
I have the query, but it still doesn't work:
SELECT
LTRIM(RTRIM(LEFT(Table.Street ,PATINDEX('% [0-9]%',Table.Street )-1))) AS Street,
Thank you
with my solution and wth yours I get the message " Invalid length parameter passed to the LEFT or SUBSTRING function." How could I avoid this?
With your solution I get for the house numbers in addition .0 to every house number
|Au|8 0
|Ruschgraben|810 0
|Bahnhofstrasse|12b 0
|Buba|12/3 0