Try something like this:SELECT T.str, SUM(LEN(T.str) - LEN(REPLACE(T.str, C.c, ''))) AS cnt FROM YourTable AS T CROSS JOIN (VALUES('A'), ('B'), ('C'), ('D'), ('E'), ('F'), ('G'), ('H'), ('I'), ('J'), ('K'), ('L'), ('M'), ('N'), ('O'), ('P'), ('Q'), ('R'), ('S'), ('T'), ('U'), ('V'), ('W'), ('X'), ('Y'), ('Z')) AS C(c) GROUP BY T.str;For us, there is only the trying. The rest is not our business. ~T.S. EliotMuhammad Al Pasha