Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PL SQL help using SQLPlus

Status
Not open for further replies.

cuetzpalin

Programmer
Jun 5, 2002
99
US
Hi,

Thank for taking time to read my thread. I'm new to PL/SQL so I need some help.
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 fields.

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

 
I would suggest you go to the oracle site

regards
Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top