T
thadson
I'm faced with a unique problem.
many-to-many self join
I have a list of drawings. some drawings include subdrawings and those
subdrawings can have more subdrawings. However, the subdrawings can be main
drawings for a project by themselves.
It looks like this:
I have projects. I put them into tbl_projects
I have drawings for above projects. tbl_drawings
now some drawings belong to some drawings.
router1 - box1 - feet1
- button1
- mainboard - powersupplyboard1
-antenna
router2 - box1 - feet2
- button1
- mainboard - powersupplyboard2
- antenna2
switch1 - box1 - feet1
- button2
- mainboard - powersupplyboard1
In plain words, a there are many routers, all can have the same or different
looking boxes. All boxes can have the same or different feet, switches,
mainboards, etc...
Than all mainboards have parts on them, like capacitors and resistors, but
can have complex parts that are described in more drawings like the
powersupply which in turn could have its own enclosure and feet drawing that
could be the same or different from the above. Even writing it down seems
complex and confusing.
Any idea how I can self join the drawings so any drawing can belong to any
other drawing in any depth?
Thanks for any help.
many-to-many self join
I have a list of drawings. some drawings include subdrawings and those
subdrawings can have more subdrawings. However, the subdrawings can be main
drawings for a project by themselves.
It looks like this:
I have projects. I put them into tbl_projects
I have drawings for above projects. tbl_drawings
now some drawings belong to some drawings.
router1 - box1 - feet1
- button1
- mainboard - powersupplyboard1
-antenna
router2 - box1 - feet2
- button1
- mainboard - powersupplyboard2
- antenna2
switch1 - box1 - feet1
- button2
- mainboard - powersupplyboard1
In plain words, a there are many routers, all can have the same or different
looking boxes. All boxes can have the same or different feet, switches,
mainboards, etc...
Than all mainboards have parts on them, like capacitors and resistors, but
can have complex parts that are described in more drawings like the
powersupply which in turn could have its own enclosure and feet drawing that
could be the same or different from the above. Even writing it down seems
complex and confusing.
Any idea how I can self join the drawings so any drawing can belong to any
other drawing in any depth?
Thanks for any help.