In: Computer Science
Using the relational model, define relations, keys, etc. to model flights, airlines and airports. Explain all of the choices you make.
Using the relational model, define relations, keys, etc. to model flights, airlines and airports. Explain all of the choices you make.
Each airport is represented in the database, which retains its specific airport code, the name of the airpot and the city and state in which the airport is located.
There is a specific number for any airline flight, the airline for the flight, and the weekdays on which the flight is scheduled.
A flight includes one or two legs of a flight. Each leg of the flight has a leg number, airport of departure and scheduled time of departure, airport of arrival and scheduled time of arrival.
A leg example is an example of a flight leg at a given date. Also preserved are the number of available seats and the aircraft used in the example of the leg.
For each reservation, the customer reservations contain the client name, phone, and seat numbers on each leg case.
Data on aircraft and models of aircraft is also preserved. The model name, production company, and maximum number of seats are maintained for each model of airplane. The airports where such Can Land aircraft are kept in the database. Airplane I d, Total number of seats, and Type are maintained for each airplane.
Entities
Relationships
Key attributes
Other relevant attributes
ER Diagram