I have field that contains a comma-separated list. Some old records have a comma at the beginning or end of the field. I need to remove these extra commas.
Example:<
Check this website
SELECT TRIM(TRAILING 'xyz' FROM 'barxxyz');
which in your case would be ',' instead of 'xyz'