I need help in below table updation using SQL in Ms-Access 2007-2010 database.
I've a table called table1 which has below entries:
table1: -------------------------------------------------- | col1 | col2 | col3 | ------------------------------------------------- | A1 | abcd | 123;456;789 | ------------------------------------------------- | B2 | efgh | 246;369 | -------------------------------------------------- | C3 | ijk | | --------------------------------------------------
Using SQL, I want to change the above table (particularly the column col3 multiple values into individual multiple rows) as shown below:
-------------------------------------------------- | col1 | col2 | col3 | ------------------------------------------------- | A1 | abcd | 123 | ------------------------------------------------- | A1 | abcd | 456 | ------------------------------------------------- | A1 | abcd | 789 | ------------------------------------------------- | B2 | efgh | 246 | -------------------------------------------------- | B2 | efgh | 369 | ------------------------------------------------- | C3 | ijk | | --------------------------------------------------
How do I do it? I tried various forums. but could not come up with exact solution so far.
Appreciate your help.
Thanks, Jak.