Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Sql > Re: Having a me...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 3423 of 3799
Post > Topic >>

Re: Having a mental block with (self) outer joins

by Dennis Muhlestein <djmuhlestein@[EMAIL PROTECTED] > Apr 24, 2008 at 04:20 PM

> If the table contains more levels (i.e. child1 being the parent of 
> another item) this bring others back as well. And I was trying to 
> retrieve the full path for each item (I do know the max. number of
levels)
> 

There is no max number of levels.  I don't try to pick all the levels 
out in one query though.  In my case, since I don't know the number of 
levels, I do the query recursively.  This works just fine to build a 
complex tree but you might consider caching the results.

-Dennis
 




 4 Posts in Topic:
Having a mental block with (self) outer joins
spam_eater@[EMAIL PROTECT  2008-04-21 15:48:23 
Re: Having a mental block with (self) outer joins
depesz@[EMAIL PROTECTED]   2008-04-21 16:05:21 
Re: Having a mental block with (self) outer joins
spam_eater@[EMAIL PROTECT  2008-04-21 16:15:20 
Re: Having a mental block with (self) outer joins
Dennis Muhlestein <djm  2008-04-24 16:20:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 22:09:01 CST 2008.