Hello,
can anybody help me in the following problem.
I have to fill the table tblITEMS in my "new" DB with the data from the tblITEMS in "old" DB, but some fieleds in this DB don't match.
In "old" DB the tblITEMS has a field Format, which is a string of few items separted by spaces or commas like this:
-------------------------------------
|ItemID |Name |Format |
|1 |first |item1 item2 item3|
|2 |second|item2,item4,item5|
|3 |third |item1 item5 |
...
--------------------------------------
In the "new" DB I have now a separate table
tblFormats:
--------------------
|FormatID|Format|
|1 |item1 |
|2 |item2 |
|3 |item3 |
|4 |item4 |
...
--------------------
In "new" DB the tblITEMS and tblFormats are conected through a junction table.
My question: how to extract the data from "old" DB (tblITEMS) to the "new" DB
so the junction table will looks like this:
-----------------------------------
|Name |Format|
|first |item1 |
|first |item2 |
|first |item3 |
|second|item2 |
|second|item4 |
|second|item5 |
...
-------------------------------------
Thanks for any advice.
E.
can anybody help me in the following problem.
I have to fill the table tblITEMS in my "new" DB with the data from the tblITEMS in "old" DB, but some fieleds in this DB don't match.
In "old" DB the tblITEMS has a field Format, which is a string of few items separted by spaces or commas like this:
-------------------------------------
|ItemID |Name |Format |
|1 |first |item1 item2 item3|
|2 |second|item2,item4,item5|
|3 |third |item1 item5 |
...
--------------------------------------
In the "new" DB I have now a separate table
tblFormats:
--------------------
|FormatID|Format|
|1 |item1 |
|2 |item2 |
|3 |item3 |
|4 |item4 |
...
--------------------
In "new" DB the tblITEMS and tblFormats are conected through a junction table.
My question: how to extract the data from "old" DB (tblITEMS) to the "new" DB
so the junction table will looks like this:
-----------------------------------
|Name |Format|
|first |item1 |
|first |item2 |
|first |item3 |
|second|item2 |
|second|item4 |
|second|item5 |
...
-------------------------------------
Thanks for any advice.
E.