Suleman007
Programmer
Hi,
I need a little help regarding a simple SQL query problem.
I have a table (Airport_Detail), which has information abt the airports:
Airport_ID:
Name:
Code:
etc..
Now I have another table Flight_Detail, which has the following fields:
Flight_ID:
From_Airport_ID: (FK from Airport_Detail table mapped with Airport_ID)
To:Airport_ID: (FK from Airport_Detail table mapped with Airport_ID)
etc..
Now I want to retreive records from the above two tables in the following order:
Flight_ID
Name (against From_Airport_ID)
Name (against To_Airport_ID)
etc..
The above should be the fields in each record.
I hope the description is clear. I'm little out of practice, so need a little help to revise these things -
--
Regards Suleman
I need a little help regarding a simple SQL query problem.
I have a table (Airport_Detail), which has information abt the airports:
Airport_ID:
Name:
Code:
etc..
Now I have another table Flight_Detail, which has the following fields:
Flight_ID:
From_Airport_ID: (FK from Airport_Detail table mapped with Airport_ID)
To:Airport_ID: (FK from Airport_Detail table mapped with Airport_ID)
etc..
Now I want to retreive records from the above two tables in the following order:
Flight_ID
Name (against From_Airport_ID)
Name (against To_Airport_ID)
etc..
The above should be the fields in each record.
I hope the description is clear. I'm little out of practice, so need a little help to revise these things -
--
Regards Suleman