eashurak (3/6/2015)
Hi - Hate to review an old thread after so long, but I need to do something similar. In Jeff Moden post on 8/19/2009 1:19:13 AM he uses a process that is great if you know what values are in the field (Apples, Oranges, Lemons), but what if you don't. What if you need to flatten something indeterminate like an Email field?
Take a look at the article at the first link in my signature line below under "Helpful Links" to post some readily consumable data along with the DDL for a test table and let's get started on your problem.
--Jeff Moden
Change is inevitable... Change for the better is not.