Re: Self join - multiple rows in result.
From: Joe Celko (jcelko212_at_earthlink.net)
Date: 06/18/04
- Next message: Peter Yeoh: "Re: HOw can i know the table size ?"
- Previous message: Joe Celko: "Re: PK for 'people' table"
- In reply to: Tower: "Self join - multiple rows in result."
- Next in thread: Roji. P. Thomas: "Re: Self join - multiple rows in result."
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 17 Jun 2004 19:00:30 -0700
You ned to look at the nested sets model instead of this adjacency list
model for a tree. 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 Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
- Next message: Peter Yeoh: "Re: HOw can i know the table size ?"
- Previous message: Joe Celko: "Re: PK for 'people' table"
- In reply to: Tower: "Self join - multiple rows in result."
- Next in thread: Roji. P. Thomas: "Re: Self join - multiple rows in result."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|