Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For each table, identify each of the following when possible: a . The primary key b . A superkey c . A candidate key d
For each table, identify each of the following when possible:
a The primary key
b A superkey
c A candidate key
d The foreign keys
e A secondary key
AviaCo is an aircraft charter company that supplies ondemand charter flight services using a fleet of four aircraft. Aircraft are identified by a unique registration number. Therefore, the aircraft registration number is an appropriate primary key for the AIRCRAFT table.
The nulls in the CHARTER table's CHARCOPILOT column indicate that a copilot is not required for some charter trips or for some aircraft. Federal Aviation Administration FAA rules require a copilot on jet aircraft and on aircraft that have a gross takeoff weight over pounds. None of the aircraft in the AIRCRAFT table are governed by this requirement; however, some customers may require the presence of a copilot for insurance reasons. All charter trips are recorded in the CHARTER table.
Note: Earlier in the chapter, you were instructed to avoid homonyms and synonyms. In this problem, both the pilot and the copilot are listed in the PIlOT table, but EMPNUM cannot be used for both in the CHARTER table. Therefore, the synonyms CHARPIlOT and CHARCOPIlOT were used in the CHARTER table.
Although the solution works in this case, it is very restrictive, and it generates nulls when a copilot is not required. worse, such nulls proliferate as crew requirements change. For example, if the AviaCo charter company grows and starts using larger aircraft, crew requirements may increase to include flight engineers and load masters. The CHARTER table would then have to be modified to include the additional crew assignments; such attributes as CHARFlTENGINEER and CHARlOADMASTER would have to be added to the CHARTER table. Given this change, each time a smaller aircraft flew a charter trip without the number of crew members required in larger aircraft, the missing crew members would yield additional nulls in the CHARTER table.
You will have a chance to correct those design shortcomings in Problem The problem illustrates two important points:
Don't use synonyms. If your design requires the use of synonyms, revise the design!
To the greatest possible extent, design the database to accommodate growth without requiring structural changes in the database tables. Plan ahead and try to anticipate the effects of change on the database.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started