Is there a way to add the "-" carector instead of speces in the below column in my select statement:
SPACE(([Depth]-1)*4) + [OrgUnitName] AS [OrgUnitName],
So right now it adds spaces for however many depths there are. Is it possible to have this add the "-" charector instead of the spaces? The data is locations so it could have spaces between the words as well.
So for:
Test
Test2
Test23
I want:
Test
-Test2
--Test23