I have below table A - which has From and To Location.
| From | To |
| ------------ | ------------ |
| ABC | FG |
Below table B - has the Location longitude and latitude
Zip | Lat | Long |
---|---|---|
ABC | 90 | 80 |
FG | 45 | 67 |
I want to combine the above two tables to get the below result wherein From Location has latitude and longitude and similarly To Location has Latitude and Longitude.
From | From_Lat | From_Long | To | To_Lat | To_Long |
---|---|---|---|---|---|
ABC | 90 | 80 | FG | 45 | 67 |
Can someone help with the syntax to join table A and table B to get the desired results?
1条答案
按热度按时间v8wbuo2f1#
You'll need to use two join clauses: