Hey all,
I am looking to write an insert statement that writes one tuple for each product in the parent table and multiple tuples in the child table for each specific product.
For instance,
Parent Table: Product
Columns: prod_id, prod_desc, prod_origin
Child Table: Product Prices
Columns: prod_id, area_code, unit_price
The origin of the data comes from one table so I need to divide the relevant info from this table into my two tables in my database. Changing the table structure to just one table for all the data is not really an option.
Thanx for any help.
Shaun.
I am looking to write an insert statement that writes one tuple for each product in the parent table and multiple tuples in the child table for each specific product.
For instance,
Parent Table: Product
Columns: prod_id, prod_desc, prod_origin
Child Table: Product Prices
Columns: prod_id, area_code, unit_price
The origin of the data comes from one table so I need to divide the relevant info from this table into my two tables in my database. Changing the table structure to just one table for all the data is not really an option.
Thanx for any help.
Shaun.