I have one table with the following kinds of records in it. I have Salesman and associated account numbers (comma separated).
Salesman
+----------+----------
If it is a one off operation then it probably is easier to use any supporting language to do the processing. Python or PHP is very fast in developing such kind of scripts.