Re: Parent/Child concept in SQl tables - How do I

From: Joe Celko (joe.celko_at_northface.edu)
Date: 04/01/04


Date: Thu, 01 Apr 2004 14:16:57 -0800


>> What is the best approach to pull information from a table which has
an ID and a ParentID? a directory tree structure <<

You have the worst design of all the approaches I found. Here is the
link on Amazon.com for my new book on "Trees & Hierarchies in SQL"

http://www.amazon.com/exec/obidos/tg/detail/-/1558609202/qid=1080772873/
sr=1-1/ref=sr_1_1/102-7683601-6345721?v=glance&s=books#product-details

--CELKO--
 ===========================
 Please post DDL, so that people do not have to guess what the keys,
constraints, Declarative Referential Integrity, datatypes, etc. in your
schema are.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!