I have a table as follows :
Foo | Position
a 1
b 1.1
c 1.1.1
d 1.2
e 1.2.1
f 1.2.1.1
g 1.2.1.2
h 1.2.1.3
i 1.2.1.3.1
I want to SELECT from this table but the recordset would already achieve my indentation for me. So each digit in the Position field will be replaced by ' ' ie
Foo
a
b
  c
Easy to add the two columns together and remove the dots but hard to do a regex then on Position to replace digits with without a lot of hassle. Any ideas?
Foo | Position
a 1
b 1.1
c 1.1.1
d 1.2
e 1.2.1
f 1.2.1.1
g 1.2.1.2
h 1.2.1.3
i 1.2.1.3.1
I want to SELECT from this table but the recordset would already achieve my indentation for me. So each digit in the Position field will be replaced by ' ' ie
Foo
a
b
  c
Easy to add the two columns together and remove the dots but hard to do a regex then on Position to replace digits with without a lot of hassle. Any ideas?