cuetzpalin
Programmer
Hi,
Thank for taking time to read my thread. I'm new to PL/SQL so I need some help. I don't know if a loop will work or what to use to accomplish what I need.
I have a table with product codes that can be associated with more than one product category.
What I'm looking to do is create code that will look at all the product codes and basically loop through the table and create a new table with all the associated product categories for a particular product code.
Here's an example of the data:
Product code:
A145041
Category: Filters
A452002
Category: Hardware
A145041
Category: Hardware
A245666
Category: Film
Product code: A145041 is in multiple Categories: Filters and Hardware.
So, in my final data set table I want to combine the Categories into one data field.
It should look like this:
Product Code: A145041 Category: Filters, Hardware
Product Code: A452002 Category: Hardware
Product Code: A245666 Category: Film
I hope that makes sense.
Thank you so much in advance!
- C
Thank for taking time to read my thread. I'm new to PL/SQL so I need some help. I don't know if a loop will work or what to use to accomplish what I need.
I have a table with product codes that can be associated with more than one product category.
What I'm looking to do is create code that will look at all the product codes and basically loop through the table and create a new table with all the associated product categories for a particular product code.
Here's an example of the data:
Product code:
A145041
Category: Filters
A452002
Category: Hardware
A145041
Category: Hardware
A245666
Category: Film
Product code: A145041 is in multiple Categories: Filters and Hardware.
So, in my final data set table I want to combine the Categories into one data field.
It should look like this:
Product Code: A145041 Category: Filters, Hardware
Product Code: A452002 Category: Hardware
Product Code: A245666 Category: Film
I hope that makes sense.
Thank you so much in advance!
- C