I have two table: flight_info and cities
flight_info has fields:
flightNo Source Destination
125 1 4
432 5 2
777 6 3
cities has:
cityID Name
1 London
2 Dublin
3 Paris
4 Chicago
5 New York
6 Boston
Source and Destination are both foreign keys for cityID in cities.
I want to show
FlightNo Source Destination
125 London Chicago
I can get
flightNo Source(name)
125 London
but I'm having trouble with joining destination to the same thing as source.
Any advice????
flight_info has fields:
flightNo Source Destination
125 1 4
432 5 2
777 6 3
cities has:
cityID Name
1 London
2 Dublin
3 Paris
4 Chicago
5 New York
6 Boston
Source and Destination are both foreign keys for cityID in cities.
I want to show
FlightNo Source Destination
125 London Chicago
I can get
flightNo Source(name)
125 London
but I'm having trouble with joining destination to the same thing as source.
Any advice????