Peter Fedoročko
03/21/2025, 7:20 PMperson (id, name)
2. relation (id, from_id, to_id, relation_type)
How can I define two separate relations (person.id ↔ relation.from_id and person.id ↔ <http://relation.to|relation.to>_id)?
If I drag the blue relationship dot a second time, nothing happens.
Currently, the only solution that works for me is creating two aliases of the person table (person_from, person_to) and defining relationships as follows:
1. person_from.id ↔ relation.from_id
2. person_to.id ↔ <http://relation.to|relation.to>_id
Is there a better solution?
Example tables:
person
| id | name |
|----|---------|
| 1 | Alice |
| 2 | Bob |
| 3 | Charlie |
relation
| id | from_id | to_id | relation_type |
|----|---------|-------|---------------|
| 1 | 1 | 2 | Friend |
| 2 | 2 | 3 | Colleague |
| 3 | 3 | 1 | Family |
person_to
| id | name |
|----|---------|
| 1 | Alice |
| 2 | Bob |
| 3 | Charlie |
Thanks!Mauricio Cabezas
03/21/2025, 8:14 PMMauricio Cabezas
03/21/2025, 8:26 PMperson and relation datasets in the GoodData LDM, aliasing the person dataset into person_from and person_to is the recommended approach, as GoodData does not permit two distinct relationships using the same dataset and column.Peter Fedoročko
03/22/2025, 8:07 AM