关于数据库:BTM-382-数据库管理

42次阅读

共计 2975 个字符,预计需要花费 8 分钟才能阅读完成。

BTM 382 Database ManagementAssignment 1Use the database shown in Figure 1 to answer Problems 1-4.

  1. For each table, identify the primary key and the foreign key(s). If a table does not have aforeign key, write None.
  2. Do the tables exhibit entity integrity? Answer yes or no, and then explain your answer.
  3. Do the tables exhibit referential integrity? Answer yes or no, and then explain your answer.Write NA (Not Applicable) if the table does not have a foreign key.
  4. Identify all the relationships between the tables and describe their type.BTM 382 Database ManagementUse the database shown in Figure 2 to work Problems 5−7. Note that the database iscomposed of four tables that reflect these relationships:
    • An EMPLOYEE has only one JOB_CODE, but a JOB_CODE can be held by manyEMPLOYEEs.
    • An EMPLOYEE can participate in many PLANs, and any PLAN can be assigned to manyEMPLOYEEs.
  5. For each table in the database, identify the primary key and the foreign key(s). If a table doesnot have a foreign key, write None.
  6. Do the tables exhibit entity integrity? Answer yes or no, and then explain your answer.
  7. Do the tables exhibit referential integrity? Answer yes or no, and then explain your answer.Write NA (Not Applicable) if the table does not have a foreign key.BTM 382 Database ManagementUse the database shown in Figure 3 to answer Problems 8-11.
  8. Do the tables exhibit entity integrity? Answer yes or no, and then explain your answer.
  9. Do the tables exhibit referential integrity? Answer yes or no, and then explain your answer.Write NA (Not Applicable) if the table does not have a foreign key.
  10. Identify the TRUCK table’s candidate key(s).
  11. For each table, identify a superkey and a secondary key.Use the database shown in Figures 4 & 5 to answer Problems 12−15.ROBCOR is an aircraft charter company that supplies on-demand charter flight services using afleet of four aircraft. Aircrafts are identified by a unique registration number. Therefore, the aircraftregistration number is an appropriate primary key for the AIRCRAFT table.BTM 382 Database ManagementBTM 382 Database ManagementThe nulls in the CHARTER table’s CHAR_COPILOT column indicate that a copilot is not requiredfor some charter trips or for some aircraft. Federal Aviation Administration (FAA) rules requirea copilot on jet aircraft and on aircraft having a gross take-off weight over 12,500 pounds. Noneof the aircraft in the AIRCRAFT table are governed by this requirement; however, some customersmay require the presence of a copilot for insurance reasons. All charter trips are recorded in theCHARTER table.
  12. For each table, identify the primary key and foreign key(s) when possible.You want to see data on charters flown by either Robert Williams (employee number105) orElizabeth Travis (employee number 109) as pilot or copilot, but not charters flown by both of them.Complete Problems 13–15 to find this information.
  13. Create the table that would result from applying the SELECT and PROJECT relationaloperators to the CHARTER table to return only the CHAR_TRIP, CHAR_PILOT, andCHAR_COPILOT attributes for charters flown by either employee 105 or employee 109 as pilotor copilot.
  14. Create the table that would result from applying the SELECT and PROJECT relationaloperators to the CHARTER table to return only the CHAR_TRIP,CHAR_PILOT, andCHAR_COPILOT attributes for charters flown by both employee 105 and employee 109.
  15. Create the table that would result from applying a DIFFERENCE relational operator of yourresult from Problem 13 to your result from Problem 14.
正文完
 0