Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: Search in NestedSets

Re: Search in NestedSets

From: <michael_at_preece.net>
Date: 13 May 2005 17:41:36 -0700
Message-ID: <1116031296.040153.79480@g47g2000cwa.googlegroups.com>


I'm with you up to where you say "...AND the whole tree above this element...". If you weren't locked into the relational/SQL model, and the address could be a multivalued attribute (as in a Pick database), the query to retrieve the "structure element" with an address "like Schmidt" would be simplified - it would be SELECT {filename} WITH ADDRESS "[Schmidt]". That would give you all of the "structure elements" with an address containing the substring "Schmidt", where each "structure element" can have an infinite number of addresses, each of infinite length.

Can you elaborate on the nature of the structure - or heirarchy - please? Maybe, if you're unfamiliar with Pick, you could represent the structure in XML? It might be that you would need to go down to subvalue level (in Pick terminology) - but I'm not sure that's what you're after.

Regards,
Mike. Received on Fri May 13 2005 - 19:41:36 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US