Attaching to a Structure
From: Frans la Cour <flc_at_metier.dk>
Date: 2000/02/01
Message-ID: <8ECDEAA70flcmetierdk_at_212.242.40.196>#1/1
Date: 2000/02/01
Message-ID: <8ECDEAA70flcmetierdk_at_212.242.40.196>#1/1
I have a table of activities:
activity (ID, Name, Element ...)
and a table of structures:
structure (Element, Description, Level, Parent ...)
The Parent points back to another element at a higher level. The tree can be max 10 levels deep for practical purposes.
activity.Element references one structure.Element.
What i need is to produce 1 (one) query to attach activities in their branches to a given level, say 3.
I can't seem to get around with out temporary tables, programming and such.
The implementation is going be both Oracle 7 and 8 and MSSQL, but any hints re welcome.
Thanks
Frans la Cour Received on Tue Feb 01 2000 - 00:00:00 CET