My goal is to count how many times a letter appears in each of the words.
For example: Apples contains 1 (a) 2 (p) 1 (L) and 1 (e) 1 (s)
My original idea was to create 26 fields, 1 for each English letter. I can’t seem to figure out a formula that can do this.
Secondly I’d like to then have a table that is able to take the most common letters and display the most common words of various lengths that already exist within my database.
To count how many times a letter appears in a string of text, both lowercase and capital case, you could replace all instances of the letter with “nothing” and find the difference in length of the modified text string and the original. That would look like:
Wrapping everything in TRIM() removes extra spaces at the front/end of the result. If you don’t want to list letters that don’t appear, you can replace all "0 (x) " by doing