I am trying to update several columns in a table with rows from the same table. You see, the data as I receive it is not normalized. Basically I have a table with the following columns
name
date_created
purchase_num
item_num
...
So I might have many rows with the same name, date_created_purchase_num but with a different item_num.
What I am trying to do is do a search and find all the item_num for each group (of name, date_created_purchase_num) and update/insert into new table
name
date_created_
purchase_num
item_num_1
item_num_2
item_num_3
item_num_4
How can I do that?
thanks,
GG
name
date_created
purchase_num
item_num
...
So I might have many rows with the same name, date_created_purchase_num but with a different item_num.
What I am trying to do is do a search and find all the item_num for each group (of name, date_created_purchase_num) and update/insert into new table
name
date_created_
purchase_num
item_num_1
item_num_2
item_num_3
item_num_4
How can I do that?
thanks,
GG