I have a table that contains a hierarchy of categories. It can have any number of category levels.
I need to display these categories in a simple string format, ie:
>>parent>>child1>>subchild>>...
This is the data sample:
Id Parent Name
1 NULL Categories
4 NULL Instrument
55 NULL Genre
65 NULL Geographical Place
8 1 CLASSICAL
47 1 SOLO INSTRUMENTS
10694 1 STYLES
4521 4 Piano
1137 8 SOLO INSTRUMENTS
1140 8 WALTZES
841 47 PIANO
93328 55 CLASSICAL
93331 55 BLUES
93334 55 CLUB / ELECTRONICA
93339 55 CONTEMPORARY FOLK
93344 55 CHILDREN
94892 65 EUROPE
4180 10694 CLASSICAL - SOLO PIANO
94893 94892 Western & Southern Europe
94900 94893 France