Re: Relationship Issue

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Pardon my ignorance for a moment.

I looked at this example that you pointed me to and have a question.
When I add a new item do I not have to modify every record in the
tree? That sounds like a lot of work. Granted I looked at my
original structure and decided that querying it would be quite
disgusting. But the question still exists.

Thanks,
Jason


On Feb 13, 7:13 am, "Jason Lepack" <jlep...@xxxxxxxxx> wrote:
Interesting... Good note Jamie.

Goes back and pulls out his University text on Foliage... I mean
trees.

Cheers,
Jason Lepack

On Feb 13, 5:36 am, "Jamie Collins" <jamiecoll...@xxxxxxxxxx> wrote:



On Feb 12, 4:49 pm, "Jason Lepack" <jlep...@xxxxxxxxx> wrote:

tbl_parts:
part_id - autonumber - pk
part_description - text

tbl_bom: (bill of material)
bom_id - autonumber - indexed(no dupes)
part_id - number - PK
sub_part_id - number - PK

Yes, your structure is denormalized. That's the nature of the
adjacency list approach :(

If you want a normalized model, try the nested sets approach. See:

Trees in SQL
by Joe Celkohttp://www.intelligententerprise.com/001020/celko.jhtml

His book, 'Trees and Hierarchies in SQL for Smarties' is pretty much
essential reading on the subject.

Jamie.

--- Hide quoted text -

- Show quoted text -


.



Relevant Pages

  • Re: Looking for a good quality Fake Rolex Watch??
    ... I do not know Sandra. ... Quote "Craving or desire is like a great tree having many branches. ... It grows out of ignorance. ...
    (alt.horology)
  • Re: TPO legality
    ... of a Willow tree in my neighbour's garden. ... The paper work relating to the TPO was only sent ... and a week later my neighbour who owns the land the tree ... This not ignorance of the law, but ignorance of a restriction recently imposed by a council and not ...
    (uk.legal)
  • Need help from master Rogues
    ... forgive my ignorance on if the new tree has already been ... what should I be looking at as my talent tree? ... I mean I watched someone drop a lvl 55elite in 4-5 hits. ...
    (alt.games.warcraft)
  • Re: How do I do Identity Insert in Access
    ... I beg your pardon! ... I am admittedly operating in Access 2000, but I'd be mighty surprised if ... I have a table named MyTable, with an AutoNumber field named ID. ...
    (microsoft.public.access.formscoding)
  • Re: nearest colour and thanks for the palette help
    ... tree containing diagonal cut in a node, it was really hard to believe there is actually an inventor to it. ... Your ignorance is forgiven. ...
    (comp.graphics.algorithms)