I am just learning how to implement a nested set model, but still confuse it with a certain aspect related to elements that can be part of several categories. Given the example below, which was ripped out HERE and reflects many other examples that I came across ...
How to avoid duplication in the database when adding apples, since they are colorful (i.e. red, yellow, green)?
, ( ) , , . , ... Swing JTree HTML;).
- . . MySQL, MySQL (, , Oracle).
!
- 1: N ( ), M: N ( ) ( , ).
.
Wikipedia
, M: N !
, , , (, , ) "" "" . . , .
, . - . , , , , , , ? , . , .
. , "" "". , , , , "" . , "" , . () , " " , .
, , .., , , , , .
, .
, - , . .
, Mysql, Open Query Graph (http://openquery.com/graph/doc), mysql, , , parentId childId. , , , OQGRAPH, . . .