I have columns in a mysql table that stores the names of people as combinations of strings and extra digits for uniqueness, so I have names that are stored like this:
Patrick, Patrick1, Patrick2, ..... Patrick10, David, David2, .... David5
How to get only alpha name without numbers? Let's say I want to group different names and count each group, so I get a result similar to the following.
name | frequency ----------------- Patrick | 10 David | 5
source share