MySQL Forums
Forum List  »  General

Re: Modified Preorder Tree Traversal - Advanced question
Posted by: Roland Bouman
Date: August 23, 2005 02:30PM

Maybe im missing something, but i don't think it's all that complicated:

select c.*
from node p
inner join node c
on p.lft <= c.lft
and p.rgt => c.rgt
where p.region = [region of choice]
and c.zoom = [zoom of choice]

Now, use 'UK' for [region of choice]
and 3 for [zoom of choice].

e.g., this has nothing to do with leaf nodes: it has to do with nodes that have a zoom = 3

Options: ReplyQuote


Subject
Written By
Posted
Re: Modified Preorder Tree Traversal - Advanced question
August 23, 2005 02:30PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.