Mike,
Yup. A table with all the levels of the hierarchy and enough rows to map
all the leaves of the tree at the bottom of the tree isn't normal form. At
the risk of incurring the wrath of those that defend relational database
orthodoxy, sometimes the feature/time/cost equation means you go with what
works--even if it isn't an orthodox solution. I'll check out your 3, I've
only heard of the 3 I mentioned.
"Mike MacSween" <mike.macsween.damnthespam@btinternet.com> wrote in message
news:404b4163$0$63621$5a6aecb4@news.aaisp.net.uk.. .[color=blue]
> By the way, my 3 'methods' aren't the same as Alan Webb's 3 methods. Not
> that his aren't perfectly valid approaches (though the first two seem to[/color]
be[color=blue]
> standard adjacency list or variations and the third looks frighteningly
> un-normalised). But I didn't want you to get the idea that there are 3
> 'standard' solutions to this and that Alan and I aren't talking about the
> same 3.
>
> Yours, Mike
>
>
> "Mike MacSween" <mike.macsween.damnthespam@btinternet.com> wrote in[/color]
message[color=blue]
> news:404b40a0$0$63627$5a6aecb4@news.aaisp.net.uk.. .[color=green]
> > Try this I was involved in:
> >
> >[/color]
>[/color]
http://groups.google.com/groups?hl=e...oup%253Dcomp.*[color=blue][color=green]
> >
> > I found three standard methods
> >
> > Adjacency Lists
> > Nested Sets
> > Materialised Paths
> >
> > and some that were variations on those
> >
> > Searches on Google and in comp.databases and comp.databases.theory would[/color]
> be[color=green]
> > a start. Nested Sets + Celko would get you the details on that method[/color][/color]
from[color=blue][color=green]
> > the horses mouth as it were.
> >
> > If that link up there doesn't work try a 3 group search on:
> >
> > recursive join - blind Alley
> > or
> > hierachical structure - an overview
> >
> > together with my name.
> >
> > HTH, Mike MacSween
> >
> > "Shane" <shaneclark@dsl.pipex.com> wrote in message
> > news:40498984$0$14402$cc9e4d1f@news.dial.pipex.com ...[color=darkred]
> > > I wonder if someone has any ideas about the following.
> > >
> > > I am currently producing some reports for a manufacturing company who[/color][/color]
> work[color=green][color=darkred]
> > > with metal.
> > >
> > > A finished part can contain multiple sub-parts to make up the finished[/color]
> > part.[color=darkred]
> > > The sub-parts can also be made up of sub-parts and those sub-parts can[/color]
> > also[color=darkred]
> > > be made up of sub-parts etc etc.
> > >
> > > All parts are contained within the same table and I have a seperate[/color][/color]
> table[color=green][color=darkred]
> > > showing the sub-parts that each part is made up of. I can of course[/color][/color]
> design[color=green]
> > a[color=darkred]
> > > certain number of queries but I need some solution that will in effect[/color]
> > keep[color=darkred]
> > > querying the tables until there are no further sub-parts. If I design[/color][/color][/color]
a[color=blue][color=green][color=darkred]
> > > number of queries, then the number of parts is pre-defined i.e. If I[/color]
> > design[color=darkred]
> > > five queries, I can go down five levels from the main part. The[/color][/color][/color]
problem[color=blue]
> is[color=green][color=darkred]
> > > that there is no way of knowing how many levels to go down, so I[/color][/color][/color]
thought[color=blue][color=green][color=darkred]
> > > that some type of automatic solution that continued to produce the[/color]
> > sub-parts[color=darkred]
> > > until there are no more sub-parts would be a good idea, if indeed this[/color][/color]
> is[color=green]
> > at[color=darkred]
> > > all possible.
> > >
> > > I am sorry if this is really confusing - I have tried to explain it as
> > > simply as I possibly could.
> > >
> > > Very many thanks,
> > >
> > >
> > >
> > > Shane
> > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]