Design suggestions for a tree structure

fairyrak

New Member
Joined
Nov 27, 2016
Messages
3
I have my plan, but I don't know if it's a good one, to see I can get a better one please someone here expert in access design: please think about the most standard or general treelike or mindmap structure in access and then suggest me table names and the amount of tables and especially the field names for it:

(A tree has siblings, parents, children, nodes, roots)

I want to: be able to consult any ascendency like who are the children of a node? who are the parents, whats is all the ascendancy hierarchy? what are the siblings of a certain hierarchy? That's what I want to design the database for
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
What you seem to want is not something I have experience with, but I recalled a web page that dealt with parent/child relationships. Seems that most or all of it is in one table, and the trick is knowing how to get it out. This of course, assumes the relationships you are dealing with are of the same entity type (e.g. people or animals) and not a situation where the child is not of the same type as the parent. Here's the page Microsoft Access tips: Self Joins
 
Upvote 0
Hi,

Making the same assumption as Micron, you only need two tables. One has two columns called Parent and Child. Both columns contain Keys. Each Key will point to a record in the second table that has all the required attributes for each Key.

Note: You may need to create a "fictional" Key for the top level in the hierarchy if one does not naturally exist.

If each Key is guaranteed to occur exactly once in the Child column then you could combine both the above tables. In this scenario, you have a complete list of Children and all their attributes plus a column for the Parent all together in one table.

I have seen systems where other tables were added to define the layout of certain outputs from the system to ensure, say, the order of the boxes across the page in an organisation chart.

The skill comes in writing your reports to extract that data and present it in a useful form.


Regards,
 
Upvote 0

Forum statistics

Threads
1,223,268
Messages
6,171,100
Members
452,379
Latest member
IainTru

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top