Let's say I have two columns:
Table: MyTable
myString
----------
abaa
abb
a
bc
I'm looking for a query that would return the count of each char within the myString column. In this case, it would return :
letter count
-----------------
a 5
b 3
c 1
The only way I found to count chars was by a convoluted deletion method (count the length without the char, delete the char, and then recount), so I'm wondering if there would be a way to accomplish this more complicated task.