Hi,
I have a dataset that is the result of a join and I want to break up, back into the 2 source tables with a foreign key id in one of the tables.
For example the table I have looks a bit like this:
 
Invoice_id | Product_weight | Product_Color | Product_size
1                   | 25                      | blue                 | Large
2                   | 5                        | red                   | Small
3                   | 17                      | green               | Large
4                   | 15                      | blue                 | Medium
5                   | 25                      | blue                 | Large
6                   | 25                      | blue                 | Large
 
I want to break it back in to 2 tables like this:
 
Invoice_id | Product_id
1               |1
2               |2
3               |3
4               |4
5               |1
6               |1
 
and 
Product_id | Product_weight | Product_Color | Product_size
1                   | 25                      | blue                 | Large
2                   | 5                        | red                   | Small
3                   | 17                      | green               | Large
4                   | 15                      | blue                 | Medium
 
How do I do this?