Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / May 2008



Tip: Looking for answers? Try searching our database.

building a hierarchy

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Miq - 19 May 2008 22:28 GMT
This is tough to explain so just go with me here...

Here is my tree:

                                                         166

|-------------------|---------------------|

103                                    200
                           |-----------|-------|
                        119               125
                                       |--------|------|
                                    101           102

I need to find a way to loop so that 166 can see everything under him,
103 can see everything under him, 125 can see everything under him,
etc...

Going up the tree is easy, each person can only have 1 supervisor, but
going down is starting to throw me off because one supervisor can and
does have many subordinates.

Anybody have a neat or efficient way of doing this?
GArlington - 20 May 2008 09:52 GMT
> This is tough to explain so just go with me here...
>
[quoted text clipped - 19 lines]
>
> Anybody have a neat or efficient way of doing this?

You did NOT explain where you want to set up such relationship (I
presume DB), then read about one-to-many relationship and table
join(s): [inner] join in this case...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.