Transform multiple columns into multiple records
Posted: Wed Jun 18, 2003 8:42 pm
Scenario is as follows:
Old Access DB schema
COL_NAME DATA_TYPE
'HAIR' Yes/No
'FACE' Yes/No
'LIP' Yes/No
'ORAL' Yes/No
'ID' (PK) Text
New database design schema:
COL_NAME DATA_TYPE
'ID' VarChar (PK)
'PRODUCT_TYPE' VarChar (PK)
Question:
How can I check the 'Yes' columns from the old schema and insert each as a separate record into the new table?
Old Access DB schema
COL_NAME DATA_TYPE
'HAIR' Yes/No
'FACE' Yes/No
'LIP' Yes/No
'ORAL' Yes/No
'ID' (PK) Text
New database design schema:
COL_NAME DATA_TYPE
'ID' VarChar (PK)
'PRODUCT_TYPE' VarChar (PK)
Question:
How can I check the 'Yes' columns from the old schema and insert each as a separate record into the new table?