A
Anonymous
Can anyone help me with this?
In my database I have two tables:
"Distances"
| ID | FROM | TO | DISTANCE |
|---------------------------|
| 1 | 3 | 13 | 1679 |
| 2 | 3 |160 | 261 |
| 3 | 4 | 52 | 4968 |
| 4 | 4 | 7 | 673 |
| 5 | X | XX | XXXX |
| 6 | Y | YY | YYYY |
"Names"
| ID | FOO | NAME | BAR |
|------------------------------|
| 1 | ZX | ANTWERP | QWE |
| 2 | CV | OSLO | RTY |
| 3 | BN | COPENHAGEN | UIO |
| 4 | ML | HOUSTON | PAS |
| 5 | KJ | TAMPICO | DFG |
| 6 | HG | CABEDELO | HJK |
In the table "Distances", you see the rows FROM and TO,
Those number symbolizes the ID in the table "Names".
Ex. FROM 2 TO 6 would be the same as FROM OSLO TO CABEDELO.
Would it be possible to make a table or Query which replaces
the numbers in FROM and TO with the correct names under NAME
in the "Names" table?
Thanks
In my database I have two tables:
"Distances"
| ID | FROM | TO | DISTANCE |
|---------------------------|
| 1 | 3 | 13 | 1679 |
| 2 | 3 |160 | 261 |
| 3 | 4 | 52 | 4968 |
| 4 | 4 | 7 | 673 |
| 5 | X | XX | XXXX |
| 6 | Y | YY | YYYY |
"Names"
| ID | FOO | NAME | BAR |
|------------------------------|
| 1 | ZX | ANTWERP | QWE |
| 2 | CV | OSLO | RTY |
| 3 | BN | COPENHAGEN | UIO |
| 4 | ML | HOUSTON | PAS |
| 5 | KJ | TAMPICO | DFG |
| 6 | HG | CABEDELO | HJK |
In the table "Distances", you see the rows FROM and TO,
Those number symbolizes the ID in the table "Names".
Ex. FROM 2 TO 6 would be the same as FROM OSLO TO CABEDELO.
Would it be possible to make a table or Query which replaces
the numbers in FROM and TO with the correct names under NAME
in the "Names" table?
Thanks
