Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following AIRLINE database schema shown in the Figure 5 . 8 , which describes a database for airline flight information. Each FLIGHT is

Consider the following AIRLINE database schema shown in the Figure 5.8, which describes a database for airline flight information. Each FLIGHT is identifiedAIRPORT
FLIGHT
FLIGHT_LEG
LEG_INSTANCE
FARE
AIRPLANE_TYPE
CAN_LAND
AIRPLANE
SEAT_RESERVATION
Figure 5.8
The AIRLINE relational database schema. by a Flight_number, and consists of one or more FLIGHT_LEGs with Leg_numbers 1,2,3, and so on. Each FLIGHT_LEG has scheduled arrival and departure times, airports, and one or more LEG_INSTANCEs one for each Date on which the flight travels. FAREs are kept for each FLIGHT. For each FLIGHT_LEG instance, SEAT_RESERVATIONs are kept, as are the AIRPLANE used on the leg and the actual arrival and departure times and airports. An AIRPLANE is identified by an Airplane_id and is of a particular AIRPLANE_TYPE. CAN_LAND relates AIRPLANE_TYPEs to the AIRPORTs at which they can land. An AIRPORT is identified by an Airport_code.
Specify all the referential integrity constraints that hold on the schema in the following format:
(Foreign key) matches (Primary Key)
Example: Flight_number of FLIGHT_ LEG matches Flight_number of FLIGHT
The FKs and PKs are provided below.
FKs:
Flight_number of FLIGHT_ LEG
Flight_number of FARE
Flight_number of LEG_INSTANCE
Flight_number of SEAT_RESERVATION
Arrival_airport_code of FLIGHT_LEG
Departure_airport_code of FLIGHT_LEG
Airport_code of CAN_LAND
Leg_number of LEG_INSTANCE
Leg_number of SEAT_RESERVATION
Airplane_type_name of CAN_LAND
Airplane_type of AIRPLANE
Airplane_id of LEG_STANCE
PKs:
Flight_number of FLIGHT
Leg_number of FLIGHT LEG
Airplane_ id of AIRPLANE
Leg_number of LEG_INSTANCE
Airport_code of AIRPORT
Flight_number of FLIGHT_LEG
Airplane_type_name of AIRPLANE_TYPE
Flight_ number of LEG_INSTANCE
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions