I'd like to be able to represent the equivilant of a self-join as a relationship class, but since the source and target table are the same this isn't possible currently. A classic example would be a table of empoloyees where there is an employee id and a supervisor id column. The relationship would be from the supervisor id column back to the employee id column so that the supervisor for the empolyee could be easily accessed via the relationship.
ESRI promised this (involution) before 4 or more years ago but has not implemented it until today.
The use case I would like to apply this contains a decomposition, described as parents and childs within one table containing a multilevel hierachy.
Like e.g.
01 - building
01.1 - floor 1
01.1.1 - room 1-01
01.1.2 - room 1-02
01.2 - floor 2
01.2.1 - room 2-01
01.2.2 - room 2-02
Table would look like:
Parent | Child |
---|---|
01 | 01.1 |
01 | 01.2 |
01.1 | 01.1.1 |
01.1 | 01.1.2 |
01.2 | 01.2.1 |
01.2 | 01.2.2 |
Improve the 'Create Relationship Class' tool letting the possibility to relate a table or feature to itself, so records of a table (or feature) can be associated with others of the same table (or feature) with a many-to-many relationship class.
Till now, it's not possible, the origin and destination table have to be two different elements.
What do you think?
@SpreaficoAlessandra , Thank you for the idea! We've merged it with an existing idea in our Data Management Ideas board. Kindly add your kudos here to give the idea a boost!
as a workaround, you should be able to use QueryLayer to achieve this
Thanks for everyone's ideas and participation in this thread! The geodatabase team is taking a closer look at this idea to see how feasible it is. We will update the status of this idea if any developments occur.
I'm glad to see that this idea is now under consideration. Slightly less glad that it is 10 YEARS after I posted it, but better late than never I suppose.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.