I\'m trying to remove certain characters.
At the moment I have output like cityname district but I want to remove cityname.
cityname district
cityname
SEL
One issue with REPLACE will be where city names contain the district name. You can use something like.
REPLACE
SELECT SUBSTRING(O.Ort, LEN(C.CityName) + 2, 8000) FROM dbo.tblOrtsteileGeo O JOIN dbo.Cities C ON C.foo = O.foo WHERE O.GKZ = '06440004'