I want to SELECT 3 columns from a table called: connector
SELECT Start_ID, END_ID, ConnectionType FROM connector;
+----------+--------+----------------
| Start_ID | End_ID | ConnectionType|
+----------+--------+----------------
| 1 | 3 | Association |
| 3 | 4 | Association |
| 3 | 5 | Association |
| 5 | 7 | Association |
| 2 | 3 | Composition |
| 4 | 2 | Association |
| 5 | 1 | Composition |
| 7 | 1 | Association |
| 6 | 3 | Association |
| 6 | 2 | Association |
START and END ID are object_IDs in a table called "Object Table",
+-----------+-------------+
| Object_ID | ObjectName |
+-----------+-------------+
| 1 | Airplane |
| 2 | car |
| 3 | train |
| 4 | bus |
| 5 | motorcycle |
| 6 | bycycle |
| 7 | electric car|
+-----------+-------------+
So I want to display system names instead of IDs in the query. the system names are stored in the object table only.
+------------+------------+----------------
| ObjectName | ObjectName | ConnectionType|
+------------+------------+----------------
| Airplane | train | Association |
| " | " | Association |
| " | " | Association |
| " | " | Association |
| " | " | Composition |
| " | " | Association |
| " | " | Composition |
| " | " | Association |
| " | " | Association |
| " | " | Association |
+------------+------------+----------------