I have column TreeName with a datatype varchar(30) in table that has similar entries that are entered incorrectly in the table like:
abc]
abc,
-ab c
abc
eucalyptus
eucalyptus;
‘eucalyptus
eucalyptu s
We cannot control the entries, but we need to find similar matches and correct them. What would be the best approach to find possible similar matches (SQL Query) in the same column? The query should return that (abc] abc, -ab c) values are similar to abc. Once we find these matches, we update the table with the correct values. Thanks!