Representation of relationships
If you have given relationships, you want to present them understandable for everyone.
Arrow diagram
We already know the following presentation:
$\text{initial value}\longmapsto$ $\text{assigned value}$
Example
$\text{Weight}\longmapsto\text{Price}$
- $1 \longmapsto 4$
- $2 \longmapsto 8$
- $3 \longmapsto 12$
- ...
Relationship table
Since we assign exactly one size to each initial size, a table is very well suited for clarity.
!
Remember
An relationship table (or value table) has two columns. On the left are the initial values and on the right the assigned size.
Example
As you can see, the (vertical) table view is very similar to the example above.
Weight (in kg) | Price (in €) |
---|---|
1 | 4 |
2 | 8 |
3 | 12 |
i
Info
Even a horizontal relationship table with two rows is possible. The table would simply be rotated in this case.
Example
Weight (in kg) | 1 | 2 | 3 |
---|---|---|---|
Price (in €) | 4 | 8 | 12 |