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!

Complex pivoting.. 1

Status
Not open for further replies.

pgferro

Programmer
Aug 21, 2001
111
BS
Hi Guys,
this is a tough one, for me...
I'm working on a ecommerce db migration, this is the basic structure :

description
price
image
category
subcategory1
subcategory2
subcategory3
subcategory4
subcategory5

There are 8,000 records, 6,000 of which are same items present in different categories/subcategories, these are the ones I'm having trouble with.
So a practical scenario :

Cell Phone ABC
200
img.png
Cell Phones
Quad Band
Unlocked


Cell Phone ABC
200
img.png
Cell Phones
Quad Band
T-Mobile

The result I would like to achieve :

Cell Phone ABC
200
img.png
Cell Phones/Quad Band/Unlocked,T-Mobile

Any ideas ???

Thanks !!!!

 
Thanks !
I have to loop through the set, but it gets the job done !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top