Hi could anyone clarify this for me??
I am working on a d base project for uni, i not asking for a solution just an insight into proper d base design etc, the d base has the following entities
Flight(flight_Reg(pk), date, time, destination airport, arrival airport, stopover airport)
Airport(city(pk),country(pk),no_Runways)
Aircraft(reg(pk),engine,make, etc..)
i have identified a many to many relationship between airport and stopover in flight as a flight can have many 0, 1 or more stopovers.
My question relates to the destination and arrival airport in flight.
While these are both airports they can only ever have one airport as the attribute therefore it i a one to many, or it could also be read that the flight has more than one airport in the entity thus it is a many to many relationship and will then be decomposed into two separate entities arrival and destination airport.
What is the correct way of reading problems like these???
I am working on a d base project for uni, i not asking for a solution just an insight into proper d base design etc, the d base has the following entities
Flight(flight_Reg(pk), date, time, destination airport, arrival airport, stopover airport)
Airport(city(pk),country(pk),no_Runways)
Aircraft(reg(pk),engine,make, etc..)
i have identified a many to many relationship between airport and stopover in flight as a flight can have many 0, 1 or more stopovers.
My question relates to the destination and arrival airport in flight.
While these are both airports they can only ever have one airport as the attribute therefore it i a one to many, or it could also be read that the flight has more than one airport in the entity thus it is a many to many relationship and will then be decomposed into two separate entities arrival and destination airport.
What is the correct way of reading problems like these???