I have searched everywhere and I cannot find this implementation anywhere.
Let\'s say I have the word: QWERTY
QWERTY
I want to obtain this table:
Do it like this:
select substring(a.b, v.number+1, 1) from (select 'QWERTY AnotherWord' b) a join master..spt_values v on v.number < len(a.b) where v.type = 'P'