Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
deserel
Starting Member
4 Posts |
Posted - 2004-08-16 : 11:36:51
|
| I have 2 tables (categories and category_tree) that identify a category heirarchy.Table 1:categorycategory_idcategoryTable 2: category_treecategory_tree_idparent_category_idcategory_idlevelWhat I am trying to replicate is this type of structureSports ---Team Sports ------Baseball ------Swimming ---Individual Sports------Swimming(------ is there to show indents)(Swimming has 2 parents and thus shows up in 2 areas).I am at a wall in getting this to display. I can get one level to display (Sports : Team Sports) but I can't figure out how to get this to dynamically display all levels. (May be anywhere from 2 to 5 levels deep)Ideally, this would display as (in alphabetical order)Sports : Team Sports : BaseballSports : Team Sports : SwimmingThe idea is that people can assign products to these categories via web page. So, I'll probably make this a drop down box.Thanks in advance for any help!! |
|
|
Seventhnight
Master Smack Fu Yak Hacker
2878 Posts |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
|
|
|
|
|