While working with some legacy data, I want to group the data on a column ignoring spelling mistakes. I think SOUNDEX() could do the job to achieve the desired result. Here is what I tried:
SELECT soundex(AREA)
FROM MASTER
GROUP BY soundex(AREA)
ORDER BY soundex(AREA)
But (obviously) the SOUNDEX returned 4-character code in result rows like this, loosing actual strings:
A131
A200
A236
How could I include at least one occurrence from the group into the query result instead of 4-character code.