While working with some outdated data, I want to group data by column, ignoring spelling errors. I think SOUNDEX () can 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) SOUNDEX returned the 4-character code in the result lines, like this, having lost the actual lines:
A131 A200 A236
How could I include at least one occurrence from a group in the query result instead of a 4-character code.
source share